Skip to content

Commit

Permalink
fix: normalizes path in remapping keys to match delimiters in configu…
Browse files Browse the repository at this point in the history
…ration and path on the system (fixes issue with compilation on windows)
  • Loading branch information
vzotova committed Apr 17, 2023
1 parent 94f6987 commit 4406164
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ape_solidity/_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ def add_entry(self, remapping: ImportRemapping):
if not str(path).startswith(f".cache{os.path.sep}"):
path = Path(".cache") / path

self.import_map[remapping.key] = str(path)
self.import_map[os.path.normpath(remapping.key)] = str(path)


def get_import_lines(source_paths: Set[Path]) -> Dict[Path, List[str]]:
Expand Down

0 comments on commit 4406164

Please sign in to comment.