projekty
/
imago.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
cuckoo search, latin hypercube sampling
[imago.git]
/
im_debug.py
diff --git
a/im_debug.py
b/im_debug.py
index
9b72ed3
..
9916e92
100644
(file)
--- 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()
if image.mode != 'RGB':
image = image.convert('RGB')
pygame.init()