Utilities/__init__.py

branch
5_1_x
changeset 1371
3e5248c82ff2
parent 1328
deda60e0670a
child 1510
e75ecf2bd9dd
--- a/Utilities/__init__.py	Sat Oct 08 18:14:37 2011 +0200
+++ b/Utilities/__init__.py	Mon Oct 17 19:49:46 2011 +0200
@@ -1311,11 +1311,15 @@
     
     fullBundle = os.path.join(qtDir, 'bin',
         generateQtToolName(toolname)) + ".app"
+    if not os.path.exists(fullBundle):
+        fullBundle = os.path.join(qtDir, generateQtToolName(toolname)) + ".app"
 
     newArgs = []
     newArgs.append("-a")
     newArgs.append(fullBundle)
-    newArgs += args
+    if args:
+        newArgs.append("--args")
+        newArgs += args
 
     return ("open", newArgs)
 

eric ide

mercurial