From 195d0121edb798be5f8cca0c54e44ac499ac062c Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Wed, 31 Aug 2011 14:29:13 +0200 Subject: [PATCH] fix uninstalling plugins --- src/plugins/pluginmanager.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/pluginmanager.py b/src/plugins/pluginmanager.py index e71042189..c1112ded1 100644 --- a/src/plugins/pluginmanager.py +++ b/src/plugins/pluginmanager.py @@ -544,7 +544,7 @@ class PluginManager(object): self.plugins.remove(plugin) if self._plugin_has_entry_in_global_config(plugin): self._remove_plugin_entry_in_global_config(plugin) - del sys.modules[plugin.__module__.split('.')[-1]] + del sys.modules[plugin.__module__.split('.')[0]] del plugin.__module__.split('.')[-1] del plugin