projekty
/
imago.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
index error in stone_color fixed
[imago.git]
/
im_debug.py
diff --git
a/im_debug.py
b/im_debug.py
index
9b72ed3
..
0ac72aa
100644
(file)
--- 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':
def show(image, caption=''):
if image.mode != 'RGB':