1
0
mirror of https://github.com/EDCD/EDMarketConnector.git synced 2025-04-13 07:47:14 +03:00

Doc fixes

This commit is contained in:
Jonathan Harris 2019-11-27 01:33:58 +00:00 committed by Athanasius
parent 36477f53ec
commit 685fbeccf5

View File

@ -19,14 +19,14 @@ Each plugin has it's own folder in the `plugins` directory:
Plugins are python files. The plugin folder must have a file named `load.py` that must provide one module level function and optionally provide a few others.
EDMC will import the `load.py` file as a module and then call the `plugin_start()` function.
EDMC will import the `load.py` file as a module and then call the `plugin_start3()` function.
```python
def plugin_start3(plugin_dir):
"""
Load this plugin into EDMC
"""
print "I am loaded! My plugin folder is {}".format(plugin_dir.encode("utf-8"))
print("I am loaded! My plugin folder is {}".format(plugin_dir))
return "Test"
```
@ -39,7 +39,7 @@ def plugin_stop():
"""
EDMC is closing
"""
print "Farewell cruel world!"
print("Farewell cruel world!")
```
If your plugin uses one or more threads to handle Events then stop and join() the threads before returning from this function.