mirror of
https://github.com/kennethreitz-archive/pyinstaller.git
synced 2026-06-05 23:50:17 +00:00
b98a53df92
git-svn-id: http://svn.pyinstaller.org/trunk@2 8dd32b29-ccff-0310-8a9a-9233e24343b1
20 lines
421 B
Python
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)
|