Skip to content

Commit 35adac6

Browse files
author
Alexander Ororbia
committed
modded init to patch modules loading minor bug
1 parent bba20ca commit 35adac6

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

ngcsimlib/__init__.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,16 +37,16 @@ def preload_modules(path=None):
3737

3838
for module in modules:
3939
mod = import_module(module.absolute_path)
40-
utils._Loaded_Modules[module.absolute_path] = mod
40+
utils.modules._Loaded_Modules[module.absolute_path] = mod
4141

4242
for attribute in module.attributes:
4343
atr = getattr(mod, attribute.name)
44-
utils._Loaded_Attributes[attribute.name] = atr
44+
utils.modules._Loaded_Attributes[attribute.name] = atr
4545

46-
utils._Loaded_Attributes[".".join([module.absolute_path, attribute.name])] = atr
46+
utils.modules._Loaded_Attributes[".".join([module.absolute_path, attribute.name])] = atr
4747
if hasattr(attribute, "keywords"):
4848
for keyword in attribute.keywords:
49-
utils._Loaded_Attributes[keyword] = atr
49+
utils.modules._Loaded_Attributes[keyword] = atr
5050

5151
utils.set_loaded(True)
5252

0 commit comments

Comments
 (0)