Enhanced the install.py help info in case no PyQt variant can be found.

Sat, 22 Aug 2015 17:15:01 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Sat, 22 Aug 2015 17:15:01 +0200
changeset 4380
d79c055a12cc
parent 4378
d8f81e864816
child 4382
a65947c8832d

Enhanced the install.py help info in case no PyQt variant can be found.

install.py file | annotate | diff | comparison | revisions
--- a/install.py	Fri Aug 21 14:16:37 2015 +0200
+++ b/install.py	Sat Aug 22 17:15:01 2015 +0200
@@ -174,7 +174,10 @@
     print("    -y         add the Python variant to the executable names")
     print("    -z         don't compile the installed python files")
     print("    --pyqt=version version of PyQt to be used (one of 4 or 5)")
-    print("                   (default: {0})".format(pyqtVariant[-1]))
+    if pyqtVariant:
+        print("                   (default: {0})".format(pyqtVariant[-1]))
+    else:
+        print("                   (no PyQt variant found)")
     print()
     print("The file given to the -f option must be valid Python code"
           " defining a")

eric ide

mercurial