X-Git-Url: http://git.tomasm.cz/imago.git/blobdiff_plain/1b3674eafe2ed9104327b2af609e9c0cba69661a..e38a85551b486a0e1691eba67a9c8cfad528dbf1:/im_debug.py diff --git a/im_debug.py b/im_debug.py index 9b72ed3..0ac72aa 100644 --- a/im_debug.py +++ b/im_debug.py @@ -1,5 +1,9 @@ -import pygame -import Image +try: + import pygame +except ImportError, msg: + import sys + print >>sys.stderr, msg + sys.exit(1) def show(image, caption=''): if image.mode != 'RGB':