--- a/Globals/__init__.py Sat May 13 12:09:45 2017 +0200 +++ b/Globals/__init__.py Sat May 13 13:46:05 2017 +0200 @@ -236,10 +236,18 @@ path = os.path.join(modDir, "bin") elif os.path.exists(os.path.join(modDir, "designer.exe")): path = modDir + + if not path: + # step 2.2: check for the pyqt5-tools wheel (Windows only) + import distutils.sysconfig + pyqt5ToolsPath = os.path.join( + distutils.sysconfig.get_python_lib(True), "pyqt5-tools") + if os.path.exists(os.path.join(pyqt5ToolsPath, "designer.exe")): + path = pyqt5ToolsPath if not path: - # step 2.2: get the path from Qt - # Note: no Qt tools are to found there for PyQt 5.7.0 + # step 3: get the path from Qt + # Note: no Qt tools are to be found there for PyQt 5.7.0 path = QLibraryInfo.location(QLibraryInfo.BinariesPath) if not os.path.exists(path): path = ""