install.py

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

eric ide

mercurial