895 print("its PyQt4 wrapper.") |
895 print("its PyQt4 wrapper.") |
896 print('Error: {0}'.format(msg)) |
896 print('Error: {0}'.format(msg)) |
897 exit(1) |
897 exit(1) |
898 print("Found QScintilla2") |
898 print("Found QScintilla2") |
899 |
899 |
|
900 modulesOK = True |
900 for impModule in [ |
901 for impModule in [ |
901 "PyQt4.QtGui", "PyQt4.QtNetwork", "PyQt4.QtSql", |
902 "PyQt4.QtGui", "PyQt4.QtNetwork", "PyQt4.QtSql", |
902 "PyQt4.QtSvg", "PyQt4.QtWebKit", |
903 "PyQt4.QtSvg", "PyQt4.QtWebKit", |
903 ]: |
904 ]: |
904 name = impModule.split(".")[1] |
905 name = impModule.split(".")[1] |
905 modulesOK = True |
|
906 try: |
906 try: |
907 __import__(impModule) |
907 __import__(impModule) |
908 print("Found", name) |
908 print("Found", name) |
909 except ImportError as msg: |
909 except ImportError as msg: |
910 print('Sorry, please install {0}.'.format(name)) |
910 print('Sorry, please install {0}.'.format(name)) |