Added a check for QtHelp to the install script. 5_0_x

Sun, 09 Jan 2011 19:02:55 +0100

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Sun, 09 Jan 2011 19:02:55 +0100
branch
5_0_x
changeset 838
505c08c2d645
parent 827
e7f6008ab82b
child 856
2fd0c2ea2487

Added a check for QtHelp to the install script.

install.py file | annotate | diff | comparison | revisions
--- a/install.py	Sun Jan 09 16:26:22 2011 +0100
+++ b/install.py	Sun Jan 09 19:02:55 2011 +0100
@@ -562,7 +562,15 @@
         print('Sorry, please install PyQt4.')
         print('Error: %s' % 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