Use relative import for _imagingagg

This commit is contained in:
Christoph Gohlke 2013-03-08 13:47:41 -08:00
parent 5820716eb3
commit 34a5311e1b

View File

@ -313,13 +313,11 @@ def getdraw(im=None, hints=None):
handler = None handler = None
if not hints or "nicest" in hints: if not hints or "nicest" in hints:
try: try:
import _imagingagg from . import _imagingagg as handler
handler = _imagingagg
except ImportError: except ImportError:
pass pass
if handler is None: if handler is None:
from PIL import ImageDraw2 from PIL import ImageDraw2 as handler
handler = ImageDraw2
if im: if im:
im = handler.Draw(im) im = handler.Draw(im)
return im, handler return im, handler