##// END OF EJS Templates
py2exe is not able to handle win32com.shell...
Volker Kleinfeld -
r1422:a7e8408a default
parent child Browse files
Show More
@@ -6,6 +6,7 b''
6 6 # './setup.py --help' for more options
7 7
8 8 import glob
9 import sys
9 10 from distutils.core import setup, Extension
10 11 from distutils.command.install_data import install_data
11 12
@@ -15,6 +16,20 b' import mercurial.version'
15 16 try:
16 17 import py2exe
17 18
19 # Help py2exe to find win32com.shell
20 try:
21 import modulefinder
22 import win32com
23 for p in win32com.__path__[1:]: # Take the path to win32comext
24 modulefinder.AddPackagePath("win32com", p)
25 pn = "win32com.shell"
26 __import__(pn)
27 m = sys.modules[pn]
28 for p in m.__path__[1:]:
29 modulefinder.AddPackagePath(pn, p)
30 except ImportError:
31 pass
32
18 33 # Due to the use of demandload py2exe is not finding the modules.
19 34 # packagescan.getmodules creates a list of modules included in
20 35 # the mercurial package plus depdent modules.
General Comments 0
You need to be logged in to leave comments. Login now