pluginmanager. completely remove plugin
This commit is contained in:
parent
d957a590f7
commit
de559df7c0
|
@ -539,6 +539,9 @@ class PluginManager(object):
|
||||||
self.plugins.remove(plugin)
|
self.plugins.remove(plugin)
|
||||||
if self._plugin_has_entry_in_global_config(plugin):
|
if self._plugin_has_entry_in_global_config(plugin):
|
||||||
self._remove_plugin_entry_in_global_config(plugin)
|
self._remove_plugin_entry_in_global_config(plugin)
|
||||||
|
del sys.modules[plugin.__module__.split('.')[-1]]
|
||||||
|
del plugin.__module__.split('.')[-1]
|
||||||
|
del plugin
|
||||||
|
|
||||||
def get_plugin_by_path(self, plugin_dir):
|
def get_plugin_by_path(self, plugin_dir):
|
||||||
for plugin in self.plugins:
|
for plugin in self.plugins:
|
||||||
|
|
Loading…
Reference in New Issue