1
0
mirror of https://github.com/ciromattia/kcc synced 2026-05-14 03:21:42 +00:00

Force usage of new Pillow

This commit is contained in:
Paweł Jastrzębski
2013-10-08 12:47:34 +02:00
parent da4788a6c6
commit 5b2bb30902
3 changed files with 7 additions and 1 deletions

View File

@@ -32,6 +32,9 @@ from multiprocessing import Pool, Queue, freeze_support
try:
# noinspection PyUnresolvedReferences
from PIL import Image, ImageStat
if tuple(map(int, ('2.2.1'.split(".")))) > tuple(map(int, (Image.PILLOW_VERSION.split(".")))):
print "ERROR: Pillow 2.2.1 or newer is required!"
exit(1)
except ImportError:
print "ERROR: Pillow is not installed!"
exit(1)

View File

@@ -24,6 +24,9 @@ import os
try:
# noinspection PyUnresolvedReferences
from PIL import Image, ImageOps, ImageStat, ImageChops
if tuple(map(int, ('2.2.1'.split(".")))) > tuple(map(int, (Image.PILLOW_VERSION.split(".")))):
print "ERROR: Pillow 2.2.1 or newer is required!"
exit(1)
except ImportError:
print "ERROR: Pillow is not installed!"
exit(1)