scripts/install.py

branch
maintenance
changeset 7322
cd8ee889589f
parent 7286
7eb04391adf7
parent 7302
875a9a29c38f
child 7345
bc0ee7fadd03
equal deleted inserted replaced
7287:1c17f2191bdd 7322:cd8ee889589f
6 # This is the install script for eric6. 6 # This is the install script for eric6.
7 7
8 """ 8 """
9 Installation script for the eric6 IDE and all eric6 related tools. 9 Installation script for the eric6 IDE and all eric6 related tools.
10 """ 10 """
11
12 from __future__ import print_function
11 13
12 import sys 14 import sys
13 import os 15 import os
14 import re 16 import re
15 import compileall 17 import compileall
326 wrapper = ( 328 wrapper = (
327 '''@echo off\n''' 329 '''@echo off\n'''
328 '''start "" "{2}\\pythonw.exe"''' 330 '''start "" "{2}\\pythonw.exe"'''
329 ''' "{0}\\{1}.pyw"''' 331 ''' "{0}\\{1}.pyw"'''
330 ''' %1 %2 %3 %4 %5 %6 %7 %8 %9\n'''.format( 332 ''' %1 %2 %3 %4 %5 %6 %7 %8 %9\n'''.format(
331 pydir, wfile, sys.exec_prefix) 333 pydir, wfile, os.path.dirname(sys.executable))
332 ) 334 )
333 else: 335 else:
334 wrapper = ( 336 wrapper = (
335 '''@"{0}\\python" "{1}\\{2}.py"''' 337 '''@"{0}" "{1}\\{2}.py"'''
336 ''' %1 %2 %3 %4 %5 %6 %7 %8 %9\n'''.format( 338 ''' %1 %2 %3 %4 %5 %6 %7 %8 %9\n'''.format(
337 sys.exec_prefix, pydir, wfile) 339 sys.executable, pydir, wfile)
338 ) 340 )
339 341
340 # Mac OS X 342 # Mac OS X
341 elif sys.platform == "darwin": 343 elif sys.platform == "darwin":
342 major = sys.version_info.major 344 major = sys.version_info.major

eric ide

mercurial