diff options
author | Anton Khirnov <wyskas@gmail.com> | 2009-02-20 12:07:15 +0100 |
---|---|---|
committer | Anton Khirnov <wyskas@gmail.com> | 2009-02-20 12:07:15 +0100 |
commit | dc298eef8bcb072dd1e3469c3e7c5c40799abd33 (patch) | |
tree | f76efeb61fdd808d7b63e20ffd5ad830d7047c44 /nephilim.py | |
parent | e90c7adec573c4e75e4ffb4e792b2ead77d3672a (diff) |
nephilim: gracefully exit if PyQt4 isn't installed.
Diffstat (limited to 'nephilim.py')
-rwxr-xr-x | nephilim.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/nephilim.py b/nephilim.py index 9bd95b8..db78bb5 100755 --- a/nephilim.py +++ b/nephilim.py @@ -21,8 +21,11 @@ # import sys -from PyQt4 import QtGui from traceback import print_exc +try: + from PyQt4 import QtGui +except ImportError: + sys.exit('PyQt4 not found. Ensure that it is installed.') from nephilim.winMain import winMain from nephilim.misc import APPNAME |