Files
pyinstaller/hooks/hook-PIL.Image.py
T
giovannibajo b98a53df92 Imported Python Installer 5b5
git-svn-id: http://svn.pyinstaller.org/trunk@2 8dd32b29-ccff-0310-8a9a-9233e24343b1
2005-09-02 17:15:02 +00:00

20 lines
421 B
Python

# hook-Image.py
# helper module for Gordon's Installer
hiddenimports = []
def install_Image(lis):
import Image
# PIL uses lazy initialization.
# you candecide if you want only the
# default stuff:
Image.preinit()
# or just everything:
Image.init()
import sys
for name in sys.modules:
if name[-11:] == "ImagePlugin":
lis.append(name)
install_Image(hiddenimports)