X-Git-Url: http://git.tomasm.cz/imago.git/blobdiff_plain/1b3674eafe2ed9104327b2af609e9c0cba69661a..3fa492032fb6f72fc8d153c0d11ad61155e8c1b9:/im_debug.py?ds=inline 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':