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

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
1 changed files with 2 additions and 2 deletions

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)