diff options
| author | Hernan <hernan.grecco@gmail.com> | 2022-10-26 09:48:54 -0300 |
|---|---|---|
| committer | Hernan <hernan.grecco@gmail.com> | 2022-10-26 09:54:17 -0300 |
| commit | 1fc89cd3f0df780df78dd2c2b242e730abc93e62 (patch) | |
| tree | f21a5c1f83d7af257cca93ff7885e615ae5b9da7 /pint/_vendor/flexparser.py | |
| parent | e1432494930b732b7ecb71acfb18f3a2a1c82644 (diff) | |
| download | pint-1fc89cd3f0df780df78dd2c2b242e730abc93e62.tar.gz | |
Pull flexparser.py from https://github.com/hgrecco/flexparser
66b1338ccd0f1b6e50711e86a22718c7c8474516
Diffstat (limited to 'pint/_vendor/flexparser.py')
| -rw-r--r-- | pint/_vendor/flexparser.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pint/_vendor/flexparser.py b/pint/_vendor/flexparser.py index d1a5da7..8945b6e 100644 --- a/pint/_vendor/flexparser.py +++ b/pint/_vendor/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(): |
