fixed compate_images.py to run on my system

used libs/tools (Gentoo ~amd64 system):
* dev-python/pillow-2.0.0-r1
* dev-lang/python-3.2.5-r2 (selected as main python implementation using
  eselect)
This commit is contained in:
Nils Kneuper 2013-08-22 20:12:38 +02:00
parent 70dc23cce4
commit 7632a361af

View file

@ -21,9 +21,9 @@
from sys import argv
try:
import Image as PIL
from PIL import Image as PIL
except ImportError as e:
print "Unable to import PIL (Python Imaging Library)"
print ("Unable to import PIL (Python Imaging Library)")
raise e
list1 = open(argv[1])
@ -37,6 +37,6 @@ for path1, path2 in zip(list1, list2):
image2 = PIL.open(path2)
if image1.tostring() != image2.tostring():
print path1 + " and " + path2 + " differ!"
print (path1 + " and " + path2 + " differ!")
# vim: ts=4:sw=4:expandtab