PIL: Support systems with Pillow and without

Fixes for systems with Pillow, but leaves a "try: except ImportError" to
support anything that doesn't have a PIL top level import.

Signed-off-by: Alon Levy <alon@pobox.com>
This commit is contained in:
Alon Levy
2013-04-08 11:19:56 +03:00
parent 519bcfb0e6
commit d0e9f843e2
8 changed files with 34 additions and 11 deletions

View File

@@ -20,7 +20,7 @@
# Bram de Jong <bram.dejong at domain.com where domain in gmail>
# 2012, Joar Wandborg <first name at last name dot se>
import Image, ImageDraw, ImageColor #@UnresolvedImport
from PIL import Image, ImageDraw, ImageColor #@UnresolvedImport
from functools import partial
import math
import numpy