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

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

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Sat, 22 Aug 2015 17:15:01 +0200
branch
6_0_x
changeset 4381
bde46f229e2c
parent 4379
2fadbed7d297
child 4387
ae285de49fcf

Enhanced the install.py help info in case no PyQt variant can be found.
(grafted from d79c055a12cc0948b064b3c3cf7696d3a028e3da)

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