--- a/eric6/Globals/__init__.py Sun Sep 01 17:44:33 2019 +0200 +++ b/eric6/Globals/__init__.py Sun Sep 01 19:40:53 2019 +0200 @@ -232,15 +232,15 @@ def getPyQt5ModulesDirectory(): """ - Function to determine the path to PyQt5's (or PyQt4's) modules directory. + Function to determine the path to PyQt5 modules directory. - @return path to the PyQt5/PyQt4 modules directory (string) + @return path to the PyQt5 modules directory (string) """ import distutils.sysconfig - for pyqt in ["PyQt5", "PyQt4"]: - pyqtPath = os.path.join(distutils.sysconfig.get_python_lib(True), pyqt) - if os.path.exists(pyqtPath): - return pyqtPath + + pyqtPath = os.path.join(distutils.sysconfig.get_python_lib(True), "PyQt5") + if os.path.exists(pyqtPath): + return pyqtPath return ""