aboutsummaryrefslogtreecommitdiffstats
path: root/sources/shiboken2/tests/samplebinding/weakref_test.py
diff options
context:
space:
mode:
Diffstat (limited to 'sources/shiboken2/tests/samplebinding/weakref_test.py')
-rw-r--r--sources/shiboken2/tests/samplebinding/weakref_test.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/sources/shiboken2/tests/samplebinding/weakref_test.py b/sources/shiboken2/tests/samplebinding/weakref_test.py
index 5379169e1..a4a2dc461 100644
--- a/sources/shiboken2/tests/samplebinding/weakref_test.py
+++ b/sources/shiboken2/tests/samplebinding/weakref_test.py
@@ -31,8 +31,14 @@
'''Test weakref support'''
-import weakref
+import os
+import sys
import unittest
+import weakref
+
+sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
+from shiboken_paths import init_paths
+init_paths()
from sample import ObjectType, PrivateDtor