Forces the unloading of loaded plugins to load new versions

svn: r15350
This commit is contained in:
Doug Blank 2010-05-07 19:46:07 +00:00
parent a7d5470caa
commit 6db2110937

View File

@ -254,7 +254,10 @@ class BasePluginManager(object):
def reload(self, module, pdata): def reload(self, module, pdata):
""" """
Reloads modules that might not be in the path.
""" """
if pdata.mod_name in sys.modules:
del sys.modules[pdata.mod_name]
try: try:
reload(module) reload(module)
except: except: