Use getpass.getuser to get the username
This MR modifies all instances of os.environ['USER']
to call out to getpass.getuser()
; it's more robust than just picking out an environment variable (with no protection).
This MR modifies all instances of os.environ['USER']
to call out to getpass.getuser()
; it's more robust than just picking out an environment variable (with no protection).