diff options
Diffstat (limited to 'sources/pyside6/tests/QtLocation')
-rw-r--r-- | sources/pyside6/tests/QtLocation/location.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sources/pyside6/tests/QtLocation/location.py b/sources/pyside6/tests/QtLocation/location.py index 94d0ac552..03e5c1b24 100644 --- a/sources/pyside6/tests/QtLocation/location.py +++ b/sources/pyside6/tests/QtLocation/location.py @@ -32,7 +32,8 @@ import os import sys import unittest -sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__)))) +from pathlib import Path +sys.path.append(os.fspath(Path(__file__).resolve().parents[1])) from init_paths import init_test_paths init_test_paths(False) |