Skip to content
This repository has been archived by the owner on Sep 12, 2024. It is now read-only.

Commit

Permalink
code update
Browse files Browse the repository at this point in the history
  • Loading branch information
AshishMahendra committed Jul 29, 2024
1 parent 99cb798 commit 1097b43
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jaclang/runtimelib/importer.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 1097b43

Please sign in to comment.