2009-01-08 21:11:15 +00:00
|
|
|
# Required PIL classes may or may not be available from the root namespace
|
|
|
|
|
# depending on the installation method used.
|
|
|
|
|
try:
|
|
|
|
|
import Image
|
|
|
|
|
import ImageFile
|
|
|
|
|
import ImageFilter
|
|
|
|
|
import ImageEnhance
|
|
|
|
|
import ImageColor
|
|
|
|
|
except ImportError:
|
|
|
|
|
try:
|
|
|
|
|
from PIL import Image
|
|
|
|
|
from PIL import ImageFile
|
|
|
|
|
from PIL import ImageFilter
|
|
|
|
|
from PIL import ImageEnhance
|
|
|
|
|
from PIL import ImageColor
|
|
|
|
|
except ImportError:
|
2009-12-19 16:01:54 +00:00
|
|
|
raise ImportError('ImageKit was unable to import the Python Imaging Library. Please confirm it`s installed and available on your current Python path.')
|