eric5.py

branch
5_0_x
changeset 700
f61fa26998d0
parent 567
5dcea6a6c0d0
child 769
a7cac3e1f1e3
diff -r 7435c1a668f9 -r f61fa26998d0 eric5.py
--- 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