From b057b39e33dc0030a39d64d5e06869232f9771b2 Mon Sep 17 00:00:00 2001 From: James Lu Date: Sat, 14 Mar 2020 11:11:24 -0700 Subject: [PATCH] plugin_tutorial: update __init__.py example to match Python 3 syntax --- develop/plugin_tutorial.rst | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/develop/plugin_tutorial.rst b/develop/plugin_tutorial.rst index ea60357..7fc2aaf 100644 --- a/develop/plugin_tutorial.rst +++ b/develop/plugin_tutorial.rst @@ -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