scripts/install.py

changeset 7806
b346755b09a1
parent 7804
1cbc27e34ec6
child 7807
5514ca6a62ca
equal deleted inserted replaced
7805:3cad282e8409 7806:b346755b09a1
19 import fnmatch 19 import fnmatch
20 import subprocess # secok 20 import subprocess # secok
21 import time 21 import time
22 import io 22 import io
23 import json 23 import json
24 import shlex
24 25
25 # Define the globals. 26 # Define the globals.
26 progName = None 27 progName = None
27 currDir = os.getcwd() 28 currDir = os.getcwd()
28 modDir = None 29 modDir = None
1311 installInfo["sudo"] = os.getuid() == 0 1312 installInfo["sudo"] = os.getuid() == 0
1312 except AttributeError: 1313 except AttributeError:
1313 installInfo["sudo"] = False 1314 installInfo["sudo"] = False
1314 installInfo["user"] = os.getlogin() 1315 installInfo["user"] = os.getlogin()
1315 installInfo["exe"] = sys.executable 1316 installInfo["exe"] = sys.executable
1316 installInfo["argv"] = sys.argv[:] 1317 installInfo["argv"] = " ".join(shlex.quote(a) for a in sys.argv[:])
1317 installInfo["eric"] = cfg["ericDir"] 1318 installInfo["eric"] = cfg["ericDir"]
1318 installInfo["virtualenv"] = installInfo["eric"].startswith( 1319 installInfo["virtualenv"] = installInfo["eric"].startswith(
1319 os.path.expanduser("~")) 1320 os.path.expanduser("~"))
1320 installInfo["installed"] = True 1321 installInfo["installed"] = True
1321 installInfo["guessed"] = False 1322 installInfo["guessed"] = False

eric ide

mercurial