diff -r 4687532058ba -r c5d8b27ac6c1 install.py --- a/install.py Sat Feb 19 14:25:54 2011 +0100 +++ b/install.py Sat Feb 19 14:44:32 2011 +0100 @@ -164,15 +164,17 @@ if sys.platform.startswith("win"): wname = wfile + ".bat" if isGuiScript: - ext = "pyw" + wrapper = \ + '''@echo off\r\n''' \ + '''set PYDIR=%~dp0\r\n''' \ + '''start "%PYDIR%\\pythonw.exe"''' \ + ''' "%PYDIR%\\Lib\\site-packages\\eric5\\{0}.pyw"''' \ + ''' %1 %2 %3 %4 %5 %6 %7 %8 %9\r\n'''.format(wfile) else: - ext = "py" - wrapper = \ - '''@echo off\r\n''' \ - '''set PYDIR=%~dp0\r\n''' \ - '''start "%PYDIR%\\pythonw.exe"''' \ - ''' "%PYDIR%\\Lib\\site-packages\\eric5\\{0}.{1}"''' \ - ''' %1 %2 %3 %4 %5 %6 %7 %8 %9\r\n'''.format(wfile, ext) + wrapper = \ + '''@"{0}\\python" "{1}\\{2}.py"''' \ + ''' %1 %2 %3 %4 %5 %6 %7 %8 %9\r\n'''.format( + platBinDir, pydir, wfile) # Mac OS X elif sys.platform == "darwin":