[bugfix] os.getlogin not working on all OS/python versions
This commit is contained in:
@@ -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):
|
||||||
|
|||||||
Reference in New Issue
Block a user