pluginmanager. completely remove plugin

This commit is contained in:
Denis Fomin 2010-11-05 14:56:31 +03:00
parent d957a590f7
commit de559df7c0
1 changed files with 3 additions and 0 deletions

View File

@ -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: