diff --git a/cmake/modules/FindPyQt5.py b/cmake/modules/FindPyQt5.py --- a/cmake/modules/FindPyQt5.py +++ b/cmake/modules/FindPyQt5.py @@ -2,16 +2,16 @@ # Redistribution and use is allowed according to the terms of the BSD license. # For details see the accompanying COPYING-CMAKE-SCRIPTS file. -import PyQt5.Qt +import PyQt5.QtCore import sys import os.path -print("pyqt_version:%06.0x" % PyQt5.Qt.PYQT_VERSION) -print("pyqt_version_str:%s" % PyQt5.Qt.PYQT_VERSION_STR) +print("pyqt_version:%06.0x" % PyQt5.QtCore.PYQT_VERSION) +print("pyqt_version_str:%s" % PyQt5.QtCore.PYQT_VERSION_STR) pyqt_version_tag = "" in_t = False -pyqt_config_list = PyQt5.Qt.PYQT_CONFIGURATION["sip_flags"].split(' ') +pyqt_config_list = PyQt5.QtCore.PYQT_CONFIGURATION["sip_flags"].split(' ') for item in pyqt_config_list: if item == "-t": in_t = True @@ -33,4 +33,4 @@ pyqt_sip_dir = os.path.join(sys.prefix, "share", "sip", "PyQt5") print("pyqt_sip_dir:%s" % pyqt_sip_dir) -print("pyqt_sip_flags:%s" % PyQt5.Qt.PYQT_CONFIGURATION["sip_flags"]) +print("pyqt_sip_flags:%s" % PyQt5.QtCore.PYQT_CONFIGURATION["sip_flags"])