mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-23 11:09:23 +01:00
Put the new module in sys.modules, just to be safe.
This commit is contained in:
parent
a6099943b4
commit
ae44a337be
@ -71,6 +71,8 @@ def loadPluginModule(name):
|
|||||||
pass
|
pass
|
||||||
moduleInfo = imp.find_module(name, conf.pluginDirs)
|
moduleInfo = imp.find_module(name, conf.pluginDirs)
|
||||||
module = imp.load_module(name, *moduleInfo)
|
module = imp.load_module(name, *moduleInfo)
|
||||||
|
if module.__name__ in sys.modules:
|
||||||
|
sys.modules[module.__name__] = module
|
||||||
linecache.checkcache()
|
linecache.checkcache()
|
||||||
return module
|
return module
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user