Added a check for QtHelp to the install script.

Sun, 09 Jan 2011 18:57:07 +0100

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Sun, 09 Jan 2011 18:57:07 +0100
changeset 837
10547522aa98
parent 836
0dfd2eee5d34
child 839
9605f699731f

Added a check for QtHelp to the install script.

install.py file | annotate | diff | comparison | revisions
diff -r 0dfd2eee5d34 -r 10547522aa98 install.py
--- a/install.py	Sun Jan 09 18:29:10 2011 +0100
+++ b/install.py	Sun Jan 09 18:57:07 2011 +0100
@@ -578,7 +578,15 @@
         print('Sorry, please install PyQt4.')
         print('Error: {0}'.format(msg))
         exit(1)
-    print("Found PyQt")
+    print("Found PyQt4")
+    
+    try:
+        import PyQt4.QtHelp         # __IGNORE_WARNING__
+    except ImportError as msg:
+        print('Sorry, please install QtHelp.')
+        print('Error: {0}'.format(msg))
+        sys.exit(1)
+    print("Found QtHelp")
     
     try:
         from PyQt4 import Qsci      # __IGNORE_WARNING__

eric ide

mercurial