about summary refs log tree commit diff
path: root/kcc.py
diff options
context:
space:
mode:
authorPaweł Jastrzębski <pawelj@vulturis.eu>2013-06-18 10:56:27 +0200
committerPaweł Jastrzębski <pawelj@vulturis.eu>2013-06-18 10:56:27 +0200
commitfd493dba9a438767c570a6b4eb0dec20ffc6474a (patch)
tree264c51a20b1773a903c219f919227adf3b9721db /kcc.py
parentUUpdated README (diff)
downloadkcc-fd493dba9a438767c570a6b4eb0dec20ffc6474a.tar.gz
kcc-fd493dba9a438767c570a6b4eb0dec20ffc6474a.tar.bz2
kcc-fd493dba9a438767c570a6b4eb0dec20ffc6474a.zip
More user-friendly import errors
Diffstat (limited to 'kcc.py')
-rw-r--r--kcc.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/kcc.py b/kcc.py
index b13b696..ef8678c 100644
--- a/kcc.py
+++ b/kcc.py
@@ -24,7 +24,12 @@ __docformat__ = 'restructuredtext en'
 
 import sys
 import os
-from PyQt4 import QtGui
+try:
+    # noinspection PyUnresolvedReferences
+    from PyQt4 import QtGui
+except ImportError:
+    print "ERROR: PyQT4 is not installed!"
+    exit(1)
 from kcc import KCC_gui
 from multiprocessing import freeze_support