aboutsummaryrefslogtreecommitdiffstats
path: root/sources/pyside2/PySide2/__init__.py.in
diff options
context:
space:
mode:
Diffstat (limited to 'sources/pyside2/PySide2/__init__.py.in')
-rw-r--r--sources/pyside2/PySide2/__init__.py.in5
1 files changed, 5 insertions, 0 deletions
diff --git a/sources/pyside2/PySide2/__init__.py.in b/sources/pyside2/PySide2/__init__.py.in
index ac75f52b6..4548f89b7 100644
--- a/sources/pyside2/PySide2/__init__.py.in
+++ b/sources/pyside2/PySide2/__init__.py.in
@@ -19,6 +19,11 @@ def _setupQtDirectories():
# loads the libraries into the process memory beforehand, and
# thus takes care of it for us.
import shiboken2
+ # We might be running from CTest and missing shiboken2.__init__,
+ # so here it is again: Help Python2 by pre-loading modules.
+ import sys, zipfile, base64, marshal, io
+ # Trigger signature initialization.
+ type.__signature__
pyside_package_dir = os.path.abspath(os.path.dirname(__file__))