Skip to content

Commit

Permalink
Fix: path Issue in import pass
Browse files Browse the repository at this point in the history
  • Loading branch information
kugesan1105 committed Dec 23, 2024
1 parent 5358fe8 commit a9b46bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jac/jaclang/compiler/passes/main/import_pass.py
Original file line number Diff line number Diff line change
Expand Up @@ -492,7 +492,7 @@ def __load_jac_builtins(self) -> None:

assert isinstance(self.ir, ast.Module)

file_to_raise = str("/home/mgtm98/jaseci/jac/jaclang/plugin/jac_builtins.pyi")
file_to_raise = os.path.join(os.path.dirname(__file__), "../../../../jaclang/plugin/jac_builtins.pyi")
with open(file_to_raise, "r", encoding="utf-8") as f:
file_source = f.read()
mod = PyastBuildPass(
Expand Down

0 comments on commit a9b46bb

Please sign in to comment.