mirror of
https://github.com/kennethreitz-archive/pyinstaller.git
synced 2026-06-05 15:40:17 +00:00
Fix the import hook for PIL to be Python 2.5-compatible
git-svn-id: http://svn.pyinstaller.org/trunk@631 8dd32b29-ccff-0310-8a9a-9233e24343b1
This commit is contained in:
+1
-1
@@ -18,4 +18,4 @@
|
||||
# Forward to shared code for PIL. PIL can be imported either as a top-level package
|
||||
# (from PIL import Image), or not (import Image), because it installs a
|
||||
# PIL.pth.
|
||||
from shared_PIL_Image import *
|
||||
from hooks.shared_PIL_Image import *
|
||||
|
||||
@@ -26,4 +26,4 @@ __name__ = "hook-image"
|
||||
# Forward to shared code for PIL. PIL can be imported either as a top-level package
|
||||
# (from PIL import Image), or not (import Image), because it installs a
|
||||
# PIL.pth.
|
||||
from shared_PIL_Image import *
|
||||
from hooks.shared_PIL_Image import *
|
||||
|
||||
@@ -18,4 +18,4 @@
|
||||
# Forward to shared code for PIL. PIL can be imported either as a top-level package
|
||||
# (from PIL import Image), or not (import Image), because it installs a
|
||||
# PIL.pth.
|
||||
from shared_PIL_SpiderImagePlugin import *
|
||||
from hooks.shared_PIL_SpiderImagePlugin import *
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
# empty (just to need Python import machinery happy)
|
||||
@@ -18,4 +18,4 @@
|
||||
# Forward to shared code for PIL. PIL can be imported either as a top-level package
|
||||
# (from PIL import Image), or not (import Image), because it installs a
|
||||
# PIL.pth.
|
||||
from shared_PIL_SpiderImagePlugin import *
|
||||
from hooks.shared_PIL_SpiderImagePlugin import *
|
||||
|
||||
Reference in New Issue
Block a user