958 print("its PyQt4 wrapper.") |
958 print("its PyQt4 wrapper.") |
959 print('Error: {0}'.format(msg)) |
959 print('Error: {0}'.format(msg)) |
960 exit(1) |
960 exit(1) |
961 print("Found QScintilla2") |
961 print("Found QScintilla2") |
962 |
962 |
|
963 modulesOK = True |
963 for impModule in [ |
964 for impModule in [ |
964 "PyQt4.QtGui", "PyQt4.QtNetwork", "PyQt4.QtSql", |
965 "PyQt4.QtGui", "PyQt4.QtNetwork", "PyQt4.QtSql", |
965 "PyQt4.QtSvg", "PyQt4.QtWebKit", |
966 "PyQt4.QtSvg", "PyQt4.QtWebKit", |
966 ]: |
967 ]: |
967 name = impModule.split(".")[1] |
968 name = impModule.split(".")[1] |
968 modulesOK = True |
|
969 try: |
969 try: |
970 __import__(impModule) |
970 __import__(impModule) |
971 print("Found", name) |
971 print("Found", name) |
972 except ImportError as msg: |
972 except ImportError as msg: |
973 print('Sorry, please install {0}.'.format(name)) |
973 print('Sorry, please install {0}.'.format(name)) |