mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-01-13 18:56:17 +03:00
PIL imports work in python3/Ubuntu
This commit is contained in:
parent
c774f9ab4c
commit
7f698a6fc5
|
@ -53,7 +53,7 @@ try:
|
||||||
# the "open" function to identify files, but you cannot load
|
# the "open" function to identify files, but you cannot load
|
||||||
# them. Note that other modules should not refer to _imaging
|
# them. Note that other modules should not refer to _imaging
|
||||||
# directly; import Image and use the Image.core variable instead.
|
# 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:
|
except ImportError as v:
|
||||||
core = _imaging_not_installed()
|
core = _imaging_not_installed()
|
||||||
if str(v)[:20] == "Module use of python" and warnings:
|
if str(v)[:20] == "Module use of python" and warnings:
|
||||||
|
|
|
@ -82,7 +82,7 @@ VERSION = "0.1.0 pil"
|
||||||
# --------------------------------------------------------------------.
|
# --------------------------------------------------------------------.
|
||||||
|
|
||||||
from PIL import Image
|
from PIL import Image
|
||||||
from . import _imagingcms
|
from PIL import _imagingcms
|
||||||
|
|
||||||
core = _imagingcms
|
core = _imagingcms
|
||||||
|
|
||||||
|
|
|
@ -17,7 +17,7 @@
|
||||||
# extensions.)
|
# extensions.)
|
||||||
##
|
##
|
||||||
|
|
||||||
from . import _imaginggl
|
from PIL import _imaginggl
|
||||||
|
|
||||||
##
|
##
|
||||||
# Texture factory.
|
# Texture factory.
|
||||||
|
@ -25,4 +25,4 @@ from . import _imaginggl
|
||||||
class TextureFactory:
|
class TextureFactory:
|
||||||
pass # overwritten by the _imaginggl module
|
pass # overwritten by the _imaginggl module
|
||||||
|
|
||||||
from ._imaginggl import *
|
from _imaginggl import *
|
||||||
|
|
|
@ -16,7 +16,7 @@
|
||||||
#
|
#
|
||||||
|
|
||||||
from PIL import Image
|
from PIL import Image
|
||||||
from . import _imagingmath
|
from PIL import _imagingmath
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
try:
|
try:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user