scripts/install.py

changeset 7814
6fa40642ed7c
parent 7813
5d0dbec7b815
child 7821
12406e6ba24c
--- a/scripts/install.py	Sun Oct 25 12:28:07 2020 +0100
+++ b/scripts/install.py	Sun Oct 25 14:34:57 2020 +0100
@@ -23,6 +23,7 @@
 import json
 import shlex
 import datetime
+import getpass
 
 # Define the globals.
 progName = None
@@ -1315,7 +1316,7 @@
         installInfo["sudo"] = os.getuid() == 0
     except AttributeError:
         installInfo["sudo"] = False
-    installInfo["user"] = os.getlogin()
+    installInfo["user"] = getpass.getuser()
     installInfo["exe"] = sys.executable
     installInfo["argv"] = " ".join(shlex.quote(a) for a in sys.argv[:])
     installInfo["install_cwd"] = installCwd

eric ide

mercurial