Fixed unit test for PySide6

This commit is contained in:
Renato Araujo
2021-09-30 06:04:29 -07:00
parent a90417de55
commit b7b1d6d4e9
2 changed files with 7 additions and 4 deletions

View File

@@ -18,10 +18,13 @@ def setupLibraryPath():
if sys.platform != 'win32': if sys.platform != 'win32':
return return
from shiboken2 import shiboken2 if "@PYSIDE_MAJOR_VERSION@" == "6":
from PySide@PYSIDE_MAJOR_VERSION@ import QtCore from shiboken@PYSIDE_MAJOR_VERSION@ import Shiboken
else:
from shiboken@PYSIDE_MAJOR_VERSION@ import shiboken@PYSIDE_MAJOR_VERSION@ as Shiboken
extra_dll_dirs = [ os.path.abspath(os.path.dirname(shiboken2.__file__)), from PySide@PYSIDE_MAJOR_VERSION@ import QtCore
extra_dll_dirs = [ os.path.abspath(os.path.dirname(Shiboken.__file__)),
os.path.abspath(os.path.dirname(QtCore.__file__)), os.path.abspath(os.path.dirname(QtCore.__file__)),
os.path.abspath(os.path.dirname(__file__)) ] os.path.abspath(os.path.dirname(__file__)) ]

View File

@@ -12,7 +12,7 @@ import os
import sys import sys
class TstConfig(object): class TstConfig(object):
bindingsNamespace = "@PYTHON_BINDING_NAMESPACE@" bindingsNamespace = "PyKDDockWidgets"
def initLibraryPath(): def initLibraryPath():
if sys.platform == 'win32' and sys.version_info[0] == 3 and sys.version_info[1] >= 8: if sys.platform == 'win32' and sys.version_info[0] == 3 and sys.version_info[1] >= 8: