eric6/UI/UserInterface.py

changeset 7814
6fa40642ed7c
parent 7813
5d0dbec7b815
child 7818
5c9271c2f662
child 7824
096b3ebc1409
child 7836
2f0d208b8137
--- a/eric6/UI/UserInterface.py	Sun Oct 25 12:28:07 2020 +0100
+++ b/eric6/UI/UserInterface.py	Sun Oct 25 14:34:57 2020 +0100
@@ -13,6 +13,7 @@
 import shutil
 import json
 import datetime
+import getpass
 
 from PyQt5.QtCore import (
     pyqtSlot, QTimer, QFile, QFileInfo, pyqtSignal, PYQT_VERSION_STR, QDate,
@@ -1490,7 +1491,7 @@
                                 os.path.expanduser("~"))
                         )
                         if installInfo["virtualenv"]:
-                            installInfo["user"] = os.getlogin()
+                            installInfo["user"] = getpass.getuser()
                             installInfo["exe"] = sys.executable
                         installInfo["installed"] = True
                         installInfo["installed_on"] = installDateTime.strftime(

eric ide

mercurial