Show More
@@ -98,24 +98,8 b' def hasfunction(cc, funcname):' | |||||
98 | try: |
|
98 | try: | |
99 | import py2exe |
|
99 | import py2exe | |
100 | py2exeloaded = True |
|
100 | py2exeloaded = True | |
101 |
|
||||
102 | # Help py2exe to find win32com.shell |
|
|||
103 | try: |
|
|||
104 | import modulefinder |
|
|||
105 | import win32com |
|
|||
106 | for p in win32com.__path__[1:]: # Take the path to win32comext |
|
|||
107 | modulefinder.AddPackagePath("win32com", p) |
|
|||
108 | pn = "win32com.shell" |
|
|||
109 | __import__(pn) |
|
|||
110 | m = sys.modules[pn] |
|
|||
111 | for p in m.__path__[1:]: |
|
|||
112 | modulefinder.AddPackagePath(pn, p) |
|
|||
113 | except ImportError: |
|
|||
114 | pass |
|
|||
115 |
|
||||
116 | except ImportError: |
|
101 | except ImportError: | |
117 | py2exeloaded = False |
|
102 | py2exeloaded = False | |
118 | pass |
|
|||
119 |
|
103 | |||
120 | def runcmd(cmd, env): |
|
104 | def runcmd(cmd, env): | |
121 | p = subprocess.Popen(cmd, stdout=subprocess.PIPE, |
|
105 | p = subprocess.Popen(cmd, stdout=subprocess.PIPE, |
General Comments 0
You need to be logged in to leave comments.
Login now