Skip to content

Commit

Permalink
Fix ast_helpers relying on inconsistent sys.path for Ivy path, fi…
Browse files Browse the repository at this point in the history
…x bug ivy-llc#10622.
  • Loading branch information
CatB1t committed Feb 19, 2023
1 parent e6d6945 commit 19eabcb
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions ivy/utils/backend/ast_helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,9 @@


def _retrive_local_modules():
ret = []
wd = sys.path[0]
ret = ["ivy"] # TODO temporary hacky solution for finder
# Get Ivy package root
wd = sys.modules["ivy"].__path__[0]
for entry in os.scandir(wd):
if entry.is_file():
if entry.name.endswith(".py"):
Expand Down

0 comments on commit 19eabcb

Please sign in to comment.