Skip to content

Commit

Permalink
fix: src id blunder
Browse files Browse the repository at this point in the history
  • Loading branch information
antazoey committed Jul 9, 2024
1 parent aeb6d46 commit 3acc2c6
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion ape_vyper/compiler.py
Original file line number Diff line number Diff line change
Expand Up @@ -380,7 +380,11 @@ def _get_imports(
continue

content = path.read_text().splitlines()
source_id = str(get_relative_path(path.absolute(), pm.path.absolute()))
source_id = (
str(path.absolute())
if use_absolute_paths
else str(get_relative_path(path.absolute(), pm.path.absolute()))
)

# Prevent infinitely handling imports when they cross over.
if source_id in handled:
Expand Down

0 comments on commit 3acc2c6

Please sign in to comment.