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

Sat, 23 Oct 2010 19:56:41 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Sat, 23 Oct 2010 19:56:41 +0200
branch
5_0_x
changeset 700
f61fa26998d0
parent 698
7435c1a668f9
child 703
eedff6661b24

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:21:35 2010 +0200
+++ b/eric5.py	Sat Oct 23 19:56:41 2010 +0200
@@ -194,6 +194,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