mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-27 05:09:23 +01:00
sys.modules is a dict, not a list.
This commit is contained in:
parent
e787f3343e
commit
ee1d8731c9
@ -60,7 +60,8 @@ def loadPluginModule(name, ignoreDeprecation=False):
|
||||
module = imp.load_module(name, *moduleInfo)
|
||||
except:
|
||||
sys.modules.pop(name, None)
|
||||
sys.modules = filter(lambda x:not x.startswith(name + '.'), sys.modules)
|
||||
sys.modules = filter(lambda x:not x[0].startswith(name + '.'),
|
||||
sys.modules.items())
|
||||
raise
|
||||
if 'deprecated' in module.__dict__ and module.deprecated:
|
||||
if ignoreDeprecation:
|
||||
|
Loading…
Reference in New Issue
Block a user