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