diff options
Diffstat (limited to 'sources/pyside6/tests/QtWidgets/qpixmap_constructor.py')
-rw-r--r-- | sources/pyside6/tests/QtWidgets/qpixmap_constructor.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sources/pyside6/tests/QtWidgets/qpixmap_constructor.py b/sources/pyside6/tests/QtWidgets/qpixmap_constructor.py index 4502885b7..10d873abe 100644 --- a/sources/pyside6/tests/QtWidgets/qpixmap_constructor.py +++ b/sources/pyside6/tests/QtWidgets/qpixmap_constructor.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) |