Forces the unloading of loaded plugins to load new versions
svn: r15350
This commit is contained in:
parent
a7d5470caa
commit
6db2110937
@ -254,7 +254,10 @@ class BasePluginManager(object):
|
||||
|
||||
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:
|
||||
reload(module)
|
||||
except:
|
||||
|
Loading…
Reference in New Issue
Block a user