Get user in a more portable way
Some checks failed
continuous-integration/drone/push Build is failing
Some checks failed
continuous-integration/drone/push Build is failing
This commit is contained in:
parent
2cd0c430cc
commit
3ff41797c2
@ -1,9 +1,9 @@
|
||||
"""Tool configuration."""
|
||||
|
||||
import os
|
||||
from getpass import getuser
|
||||
|
||||
# current user
|
||||
WHOAMI = os.getlogin()
|
||||
WHOAMI = getuser()
|
||||
|
||||
# home directory of the current user
|
||||
HOME_DIR = "/home/{}".format(WHOAMI)
|
||||
|
Reference in New Issue
Block a user