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() |