__all__ = list("Qt" + body for body in "@all_module_shortnames@" .split(";")) __version__ = "@BINDING_API_VERSION_FULL@" __version_info__ = (@BINDING_API_MAJOR_VERSION@, @BINDING_API_MINOR_VERSION@, @BINDING_API_MICRO_VERSION@, "@BINDING_API_RELEASE_LEVEL@", @BINDING_API_SERIAL@) @PYSIDE_BUILD_DATE@ @PYSIDE_BUILD_COMMIT_DATE@ @PYSIDE_BUILD_COMMIT_HASH@ @PYSIDE_BUILD_COMMIT_HASH_DESCRIBED@ def _setupQtDirectories(): import sys import os from . import _utils pysideDir = _utils.get_pyside_dir() # Register PySide qt.conf to override the built-in # configuration variables, if there is no default qt.conf in # executable folder prefix = pysideDir.replace('\\', '/') _utils.register_qt_conf(prefix=prefix, binaries=prefix, plugins=prefix+"/plugins", imports=prefix+"/imports", translations=prefix+"/translations") # On Windows add the PySide\openssl folder (if it exists) to the # PATH so the SSL DLLs can be found when Qt tries to dynamically # load them. Tell Qt to load them and then reset the PATH. if sys.platform == 'win32': opensslDir = os.path.join(pysideDir, 'openssl') if os.path.exists(opensslDir): path = os.environ['PATH'] try: os.environ['PATH'] = opensslDir + os.pathsep + path try: from . import QtNetwork except ImportError: pass else: QtNetwork.QSslSocket.supportsSsl() finally: os.environ['PATH'] = path _setupQtDirectories()