Skip to content

Commit

Permalink
Used resolved location when including a definition file from another one
Browse files Browse the repository at this point in the history
  • Loading branch information
hgrecco committed Oct 26, 2022
1 parent 49e5c11 commit 66b1338
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions flexparser/flexparser.py
Original file line number Diff line number Diff line change
Expand Up @@ -1200,9 +1200,9 @@ def default_locator(source_location: StrictLocationT, target: str) -> StrictLoca
current_location = pathlib.Path(source_location).resolve()

if current_location.is_file():
current_path = source_location.parent
current_path = current_location.parent
else:
current_path = source_location
current_path = current_location

target_path = pathlib.Path(target)
if target_path.is_absolute():
Expand Down

0 comments on commit 66b1338

Please sign in to comment.