mirror of
https://github.com/Mikaela/Limnoria-doc.git
synced 2024-11-30 00:09:23 +01:00
plugin_tutorial: update __init__.py example to match Python 3 syntax
This commit is contained in:
parent
521eb14e04
commit
b057b39e33
@ -148,8 +148,9 @@ The rest of :file:`__init__.py` really shouldn't be touched unless you are
|
||||
using third-party modules in your plugin. If you are, then you need to take
|
||||
special note of the section that looks like this::
|
||||
|
||||
import config
|
||||
import plugin
|
||||
from . import config
|
||||
from . import plugin
|
||||
from importlib import reload
|
||||
reload(plugin) # In case we're being reloaded.
|
||||
# Add more reloads here if you add third-party modules and want them
|
||||
# to be reloaded when this plugin is reloaded. Don't forget to
|
||||
|
Loading…
Reference in New Issue
Block a user