[bugfix] os.getlogin not working on all OS/python versions
This commit is contained in:
1 parent
56295f0c81
commit
b02a0e8f9a
1 file changed
+2
-1
@@ -454,7 +454,8 @@ def getLogin():
|
||||
:return: login ID
|
||||
:rtype: str
|
||||
"""
|
||||
return os.getlogin()
|
||||
import getpass
|
||||
return getpass.getuser()
|
||||
|
||||
|
||||
def getOwner(fn):
|
||||
|
||||
Reference in new issue
Block a user