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