Put the new module in sys.modules, just to be safe.

This commit is contained in:
Jeremy Fincher 2003-12-09 21:33:13 +00:00
parent a6099943b4
commit ae44a337be

View File

@ -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