diff options
Diffstat (limited to 'sources/shiboken2/tests/samplebinding/class_fields_test.py')
-rw-r--r-- | sources/shiboken2/tests/samplebinding/class_fields_test.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sources/shiboken2/tests/samplebinding/class_fields_test.py b/sources/shiboken2/tests/samplebinding/class_fields_test.py index 6dbacbd97..202efcafb 100644 --- a/sources/shiboken2/tests/samplebinding/class_fields_test.py +++ b/sources/shiboken2/tests/samplebinding/class_fields_test.py @@ -31,9 +31,15 @@ '''Simple test case for accessing the exposed C++ class fields.''' +import os +import sys from sys import getrefcount import unittest +sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__)))) +from shiboken_paths import init_paths +init_paths() + from sample import Derived, Point, ObjectType class TestAccessingCppFields(unittest.TestCase): |