Get user in a more portable way
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
Luke Murphy
2020-04-11 23:56:38 +02:00
parent 2cd0c430cc
commit 3ff41797c2

View File

@ -1,9 +1,9 @@
"""Tool configuration.""" """Tool configuration."""
import os from getpass import getuser
# current user # current user
WHOAMI = os.getlogin() WHOAMI = getuser()
# home directory of the current user # home directory of the current user
HOME_DIR = "/home/{}".format(WHOAMI) HOME_DIR = "/home/{}".format(WHOAMI)