From 66b1338ccd0f1b6e50711e86a22718c7c8474516 Mon Sep 17 00:00:00 2001 From: Hernan Date: Wed, 26 Oct 2022 09:45:28 -0300 Subject: [PATCH] Used resolved location when including a definition file from another one --- flexparser/flexparser.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/flexparser/flexparser.py b/flexparser/flexparser.py index d1a5da7..8945b6e 100644 --- a/flexparser/flexparser.py +++ b/flexparser/flexparser.py @@ -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():