eric6/Globals/__init__.py

branch
without_py2_and_pyqt4
changeset 7198
684261ef2165
parent 7196
ab0a91b82b37
child 7229
53054eb5b15a
--- 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 ""
     

eric ide

mercurial