install.py

changeset 2583
92b902f6455e
parent 2577
14296525eff5
child 2586
d6daabefb7a6
equal deleted inserted replaced
2581:a3498dcc75cc 2583:92b902f6455e
214 if sys.platform.startswith("win"): 214 if sys.platform.startswith("win"):
215 wname = wfile + ".bat" 215 wname = wfile + ".bat"
216 if isGuiScript: 216 if isGuiScript:
217 wrapper = \ 217 wrapper = \
218 '''@echo off\n''' \ 218 '''@echo off\n''' \
219 '''set PYDIR=%~dp0\n''' \ 219 '''start "" "{2}\\pythonw.exe"''' \
220 '''start "" "%PYDIR%\\pythonw.exe"''' \
221 ''' "{0}\\{1}.pyw"''' \ 220 ''' "{0}\\{1}.pyw"''' \
222 ''' %1 %2 %3 %4 %5 %6 %7 %8 %9\n'''.format(pydir, wfile) 221 ''' %1 %2 %3 %4 %5 %6 %7 %8 %9\n'''.format(pydir, wfile, sys.exec_prefix)
223 else: 222 else:
224 wrapper = \ 223 wrapper = \
225 '''@"{0}\\python" "{1}\\{2}.py"''' \ 224 '''@"{0}\\python" "{1}\\{2}.py"''' \
226 ''' %1 %2 %3 %4 %5 %6 %7 %8 %9\n'''.format( 225 ''' %1 %2 %3 %4 %5 %6 %7 %8 %9\n'''.format(
227 sys.exec_prefix, pydir, wfile) 226 sys.exec_prefix, pydir, wfile)

eric ide

mercurial