Try to reload first; if fails, then not in path (addon), and try new import
svn: r15403
This commit is contained in:
parent
d134be8d2e
commit
d2d983f10a
@ -256,11 +256,11 @@ class BasePluginManager(object):
|
||||
"""
|
||||
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:
|
||||
if pdata.mod_name in sys.modules:
|
||||
del sys.modules[pdata.mod_name]
|
||||
module = self.import_plugin(pdata)
|
||||
return module
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user