aboutsummaryrefslogtreecommitdiffstats
path: root/sources/shiboken2/tests/samplebinding/python_thread_test.py
diff options
context:
space:
mode:
Diffstat (limited to 'sources/shiboken2/tests/samplebinding/python_thread_test.py')
-rw-r--r--sources/shiboken2/tests/samplebinding/python_thread_test.py14
1 files changed, 10 insertions, 4 deletions
diff --git a/sources/shiboken2/tests/samplebinding/python_thread_test.py b/sources/shiboken2/tests/samplebinding/python_thread_test.py
index 2015c8ed3..56b927367 100644
--- a/sources/shiboken2/tests/samplebinding/python_thread_test.py
+++ b/sources/shiboken2/tests/samplebinding/python_thread_test.py
@@ -30,16 +30,22 @@
'''Tests for using Shiboken-based bindings with python threads'''
-import unittest
+import logging
+import os
+from random import random
+import sys
import threading
-import sample
import time
+import unittest
-import logging
+sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
+from shiboken_paths import init_paths
+init_paths()
+
+import sample
#logging.basicConfig(level=logging.DEBUG)
-from random import random
class Producer(threading.Thread):
'''Producer thread'''