diff --git a/jaclang/runtimelib/importer.py b/jaclang/runtimelib/importer.py index ad3d74e72..bda85cc3b 100644 --- a/jaclang/runtimelib/importer.py +++ b/jaclang/runtimelib/importer.py @@ -182,7 +182,11 @@ def load_jac_mod_as_item( ) codeobj = self.importer.get_codeobj( full_target=jac_file_path, - module_name=self.importer.get_sys_mod_name(jac_file_path), + module_name=( + self.importer.get_sys_mod_name(jac_file_path) + if isinstance(self.importer, JacImporter) + else name + ), mod_bundle=mod_bundle, cachable=cachable, caller_dir=caller_dir,