scripts/install.py

changeset 7302
875a9a29c38f
parent 7288
1242c374623b
child 7322
cd8ee889589f
child 7329
72f3c9fdefeb
--- a/scripts/install.py	Tue Oct 22 19:56:56 2019 +0200
+++ b/scripts/install.py	Wed Oct 23 18:46:46 2019 +0200
@@ -330,13 +330,13 @@
                 '''start "" "{2}\\pythonw.exe"'''
                 ''' "{0}\\{1}.pyw"'''
                 ''' %1 %2 %3 %4 %5 %6 %7 %8 %9\n'''.format(
-                    pydir, wfile, sys.exec_prefix)
+                    pydir, wfile, os.path.dirname(sys.executable))
             )
         else:
             wrapper = (
-                '''@"{0}\\python" "{1}\\{2}.py"'''
+                '''@"{0}" "{1}\\{2}.py"'''
                 ''' %1 %2 %3 %4 %5 %6 %7 %8 %9\n'''.format(
-                    sys.exec_prefix, pydir, wfile)
+                    sys.executable, pydir, wfile)
             )
 
     # Mac OS X

eric ide

mercurial