scripts/install.py

changeset 7814
6fa40642ed7c
parent 7813
5d0dbec7b815
child 7821
12406e6ba24c
equal deleted inserted replaced
7813:5d0dbec7b815 7814:6fa40642ed7c
21 import time 21 import time
22 import io 22 import io
23 import json 23 import json
24 import shlex 24 import shlex
25 import datetime 25 import datetime
26 import getpass
26 27
27 # Define the globals. 28 # Define the globals.
28 progName = None 29 progName = None
29 currDir = os.getcwd() 30 currDir = os.getcwd()
30 modDir = None 31 modDir = None
1313 installDateTime = datetime.datetime.now(tz=None) 1314 installDateTime = datetime.datetime.now(tz=None)
1314 try: 1315 try:
1315 installInfo["sudo"] = os.getuid() == 0 1316 installInfo["sudo"] = os.getuid() == 0
1316 except AttributeError: 1317 except AttributeError:
1317 installInfo["sudo"] = False 1318 installInfo["sudo"] = False
1318 installInfo["user"] = os.getlogin() 1319 installInfo["user"] = getpass.getuser()
1319 installInfo["exe"] = sys.executable 1320 installInfo["exe"] = sys.executable
1320 installInfo["argv"] = " ".join(shlex.quote(a) for a in sys.argv[:]) 1321 installInfo["argv"] = " ".join(shlex.quote(a) for a in sys.argv[:])
1321 installInfo["install_cwd"] = installCwd 1322 installInfo["install_cwd"] = installCwd
1322 installInfo["eric"] = cfg["ericDir"] 1323 installInfo["eric"] = cfg["ericDir"]
1323 installInfo["virtualenv"] = installInfo["eric"].startswith( 1324 installInfo["virtualenv"] = installInfo["eric"].startswith(

eric ide

mercurial