mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-23 11:12:47 +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
|
||||
moduleInfo = imp.find_module(name, conf.pluginDirs)
|
||||
module = imp.load_module(name, *moduleInfo)
|
||||
if module.__name__ in sys.modules:
|
||||
sys.modules[module.__name__] = module
|
||||
linecache.checkcache()
|
||||
return module
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user