Another fix for the usage of the PyQt4 installer and multiple installations.

Sat, 23 Oct 2010 19:54:52 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Sat, 23 Oct 2010 19:54:52 +0200
changeset 699
c008503ee766
parent 696
87aea19c1988
child 701
fc587a1c2f8b

Another fix for the usage of the PyQt4 installer and multiple installations.

eric5.py file | annotate | diff | comparison | revisions
--- a/eric5.py	Sat Oct 23 19:15:51 2010 +0200
+++ b/eric5.py	Sat Oct 23 19:54:52 2010 +0200
@@ -193,6 +193,16 @@
     else:
         splash = SplashScreen()
 
+    # modify the executable search path for the PyQt4 installer
+    try:
+        from PyQt4 import pyqtconfig
+        pyqtDataDir = pyqtconfig._pkg_config["pyqt_mod_dir"]
+        if os.path.exists(os.path.join(pyqtDataDir, "bin")):
+            path = os.path.join(pyqtDataDir, "bin") + os.pathsep + os.environ["PATH"]
+            os.environ["PATH"] = path
+    except (AttributeError, ImportError):
+        pass
+    
     pluginFile = None
     noopen = False
     if "--noopen" in sys.argv and sys.argv.index("--noopen") < ddindex:

eric ide

mercurial