scripts/install.py

branch
eric7
changeset 10192
f457742dd3d6
parent 10177
27a6e35c64ed
child 10222
1146cc8fbf5d
child 10261
fa560567d555
equal deleted inserted replaced
10191:dc47d7d2ff34 10192:f457742dd3d6
1423 Record information about the way eric was installed. 1423 Record information about the way eric was installed.
1424 """ 1424 """
1425 global createInstallInfoFile, installInfo, installCwd, cfg 1425 global createInstallInfoFile, installInfo, installCwd, cfg
1426 1426
1427 if createInstallInfoFile: 1427 if createInstallInfoFile:
1428 installDateTime = datetime.datetime.now(tz=None) 1428 installDateTime = datetime.datetime.now(tz=datetime.timezone.utc)
1429 try: 1429 try:
1430 installInfo["sudo"] = os.getuid() == 0 1430 installInfo["sudo"] = os.getuid() == 0
1431 except AttributeError: 1431 except AttributeError:
1432 installInfo["sudo"] = False 1432 installInfo["sudo"] = False
1433 installInfo["user"] = getpass.getuser() 1433 installInfo["user"] = getpass.getuser()

eric ide

mercurial