From fcd5f786fbb1df46ac86e62f730a6220754ea1c6 Mon Sep 17 00:00:00 2001 From: Riley Flynn Date: Fri, 10 Mar 2017 20:32:50 -0330 Subject: [PATCH] Made reloading a plugin enable it afterwards --- jigsaw/PluginLoader.py | 3 +++ setup.py | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/jigsaw/PluginLoader.py b/jigsaw/PluginLoader.py index 475770d..0ee115c 100644 --- a/jigsaw/PluginLoader.py +++ b/jigsaw/PluginLoader.py @@ -225,6 +225,9 @@ def reload_plugin(self, name: str, *args) -> None: self._logger.debug("Loading {}.".format(name)) self.load_plugin(self.get_manifest(name), *args) + self._logger.debug("Enabling {}.".format(name)) + self.get_plugin(name).enable() + self._logger.debug("Plugin {} reloaded.".format(name)) def reload_all_plugins(self, *args) -> None: diff --git a/setup.py b/setup.py index 7e3923f..57f707c 100644 --- a/setup.py +++ b/setup.py @@ -2,7 +2,7 @@ setup( name="Jigsaw", - version="2.2.0", + version="2.2.1", packages=["jigsaw", ], license="MIT", description="A plugin framework for Python3.6+",