diff --git a/PIL/Image.py b/PIL/Image.py index cb4fc3336..a8a34d59b 100644 --- a/PIL/Image.py +++ b/PIL/Image.py @@ -53,7 +53,7 @@ try: # the "open" function to identify files, but you cannot load # them. Note that other modules should not refer to _imaging # directly; import Image and use the Image.core variable instead. - from . import _imaging as core + from PIL import _imaging as core except ImportError as v: core = _imaging_not_installed() if str(v)[:20] == "Module use of python" and warnings: diff --git a/PIL/ImageCms.py b/PIL/ImageCms.py index 3931f366c..9a607b699 100644 --- a/PIL/ImageCms.py +++ b/PIL/ImageCms.py @@ -82,7 +82,7 @@ VERSION = "0.1.0 pil" # --------------------------------------------------------------------. from PIL import Image -from . import _imagingcms +from PIL import _imagingcms core = _imagingcms diff --git a/PIL/ImageGL.py b/PIL/ImageGL.py index 147ddc3f0..cac68027b 100644 --- a/PIL/ImageGL.py +++ b/PIL/ImageGL.py @@ -17,7 +17,7 @@ # extensions.) ## -from . import _imaginggl +from PIL import _imaginggl ## # Texture factory. @@ -25,4 +25,4 @@ from . import _imaginggl class TextureFactory: pass # overwritten by the _imaginggl module -from ._imaginggl import * +from _imaginggl import * diff --git a/PIL/ImageMath.py b/PIL/ImageMath.py index 4f3c19273..395323fd3 100644 --- a/PIL/ImageMath.py +++ b/PIL/ImageMath.py @@ -16,7 +16,7 @@ # from PIL import Image -from . import _imagingmath +from PIL import _imagingmath import sys try: