Skip to content

Commit

Permalink
More robust username checking in config.py
Browse files Browse the repository at this point in the history
  • Loading branch information
wmvanvliet committed Jan 26, 2020
1 parent b0f9447 commit cd4912b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion config.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,15 @@
"""

import os
import getpass
from socket import getfqdn
from fnames import FileNames

###############################################################################
# Determine which user is running the scripts on which machine and set the path
# where the data is stored and how many CPU cores to use.

user = os.getlogin() # Username of the user running the scripts
user = getpass.getuser() # Username of the user running the scripts
host = getfqdn() # Hostname of the machine running the scripts

# You want to add your machine to this list
Expand Down

0 comments on commit cd4912b

Please sign in to comment.