fix uninstalling plugins

This commit is contained in:
Yann Leboulanger 2011-08-31 14:29:13 +02:00
parent 6a46ab3da6
commit 195d0121ed
1 changed files with 1 additions and 1 deletions

View File

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