167 # all kinds of Windows systems |
167 # all kinds of Windows systems |
168 if sys.platform.startswith("win"): |
168 if sys.platform.startswith("win"): |
169 wname = wfile + ".bat" |
169 wname = wfile + ".bat" |
170 if isGuiScript: |
170 if isGuiScript: |
171 wrapper = \ |
171 wrapper = \ |
172 '''@echo off\r\n''' \ |
172 '''@echo off\n''' \ |
173 '''set PYDIR=%~dp0\r\n''' \ |
173 '''set PYDIR=%~dp0\n''' \ |
174 '''start "" "%PYDIR%\\pythonw.exe"''' \ |
174 '''start "" "%PYDIR%\\pythonw.exe"''' \ |
175 ''' "{0}\\{1}.pyw"''' \ |
175 ''' "{0}\\{1}.pyw"''' \ |
176 ''' %1 %2 %3 %4 %5 %6 %7 %8 %9\r\n'''.format(pydir, wfile) |
176 ''' %1 %2 %3 %4 %5 %6 %7 %8 %9\n'''.format(pydir, wfile) |
177 else: |
177 else: |
178 wrapper = \ |
178 wrapper = \ |
179 '''@"{0}\\python" "{1}\\{2}.py"''' \ |
179 '''@"{0}\\python" "{1}\\{2}.py"''' \ |
180 ''' %1 %2 %3 %4 %5 %6 %7 %8 %9\r\n'''.format( |
180 ''' %1 %2 %3 %4 %5 %6 %7 %8 %9\n'''.format( |
181 platBinDir, pydir, wfile) |
181 platBinDir, pydir, wfile) |
182 |
182 |
183 # Mac OS X |
183 # Mac OS X |
184 elif sys.platform == "darwin": |
184 elif sys.platform == "darwin": |
185 wname = wfile |
185 wname = wfile |