X-Git-Url: http://git.tomasm.cz/imago.git/blobdiff_plain/1b3674eafe2ed9104327b2af609e9c0cba69661a..f0548db6acfd9616ddafa443e45103fc6655e0e4:/im_debug.py diff --git a/im_debug.py b/im_debug.py index 9b72ed3..9916e92 100644 --- a/im_debug.py +++ b/im_debug.py @@ -1,7 +1,11 @@ -import pygame -import Image +try: + import pygame +except ImportError, msg: + import sys + print >>sys.stderr, msg + sys.exit(1) -def show(image, caption=''): +def show(image, caption='', name=None): if image.mode != 'RGB': image = image.convert('RGB') pygame.init()