scripts/install.py

branch
maintenance
changeset 7322
cd8ee889589f
parent 7286
7eb04391adf7
parent 7302
875a9a29c38f
child 7345
bc0ee7fadd03
--- a/scripts/install.py	Thu Oct 03 11:12:50 2019 +0200
+++ b/scripts/install.py	Fri Nov 01 16:11:27 2019 +0100
@@ -9,6 +9,8 @@
 Installation script for the eric6 IDE and all eric6 related tools.
 """
 
+from __future__ import print_function
+
 import sys
 import os
 import re
@@ -328,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