From 1097b432fe17d345f7e7817edf9b258fa881264b Mon Sep 17 00:00:00 2001 From: Ashish Mahendra Date: Mon, 29 Jul 2024 17:43:34 +0000 Subject: [PATCH] code update --- jaclang/runtimelib/importer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jaclang/runtimelib/importer.py b/jaclang/runtimelib/importer.py index 329ccc23b..ad3d74e72 100644 --- a/jaclang/runtimelib/importer.py +++ b/jaclang/runtimelib/importer.py @@ -400,7 +400,7 @@ def run_import( else: module_name = self.get_sys_mod_name(spec.full_target) - module = sys.modules.get(module_name) + module = self.jac_machine.loaded_modules.get(module_name) if not module or module.__name__ == "__main__" or reload: if os.path.isdir(spec.full_target):