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
No known key found for this signature in database
GPG Key ID: 5E2EF5A63E3718CC

View File

@ -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)