Skip to content

Commit

Permalink
Fixed issue where implicit import paths could be duplicated in merged…
Browse files Browse the repository at this point in the history
… output
  • Loading branch information
fireundubh committed Sep 26, 2020
1 parent c3c7786 commit e5753d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyro/PathHelper.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ def merge_implicit_import_paths(implicit_paths: list, import_paths: list) -> Non
implicit_path = os.path.normpath(implicit_path)

# do not add import paths that are already declared
if implicit_path in import_paths:
if any(endswith(x, implicit_path, ignorecase=True) for x in import_paths):
continue

# insert implicit path before ancestor import path, if ancestor exists
Expand Down

0 comments on commit e5753d9

Please sign in to comment.