Skip to content
This repository has been archived by the owner on Nov 9, 2024. It is now read-only.

Commit

Permalink
Made reloading a plugin enable it afterwards
Browse files Browse the repository at this point in the history
  • Loading branch information
nint8835 committed Mar 11, 2017
1 parent 36a4db7 commit fcd5f78
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions jigsaw/PluginLoader.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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+",
Expand Down

0 comments on commit fcd5f78

Please sign in to comment.