install.py

changeset 2583
92b902f6455e
parent 2577
14296525eff5
child 2586
d6daabefb7a6
--- a/install.py	Sun Apr 14 13:12:53 2013 +0200
+++ b/install.py	Sun Apr 14 17:13:32 2013 +0200
@@ -216,10 +216,9 @@
         if isGuiScript:
             wrapper = \
                 '''@echo off\n''' \
-                '''set PYDIR=%~dp0\n''' \
-                '''start "" "%PYDIR%\\pythonw.exe"''' \
+                '''start "" "{2}\\pythonw.exe"''' \
                 ''' "{0}\\{1}.pyw"''' \
-                ''' %1 %2 %3 %4 %5 %6 %7 %8 %9\n'''.format(pydir, wfile)
+                ''' %1 %2 %3 %4 %5 %6 %7 %8 %9\n'''.format(pydir, wfile, sys.exec_prefix)
         else:
             wrapper = \
                 '''@"{0}\\python" "{1}\\{2}.py"''' \

eric ide

mercurial