mirror of
https://github.com/pfloos/quack
synced 2024-12-22 12:23:50 +01:00
user env on github machines
This commit is contained in:
parent
3e5e88d521
commit
fe01afdbdf
@ -20,7 +20,8 @@ current_date = datetime.now()
|
||||
quack_root = os.getenv('QUACK_ROOT')
|
||||
|
||||
# User Name
|
||||
user_name = os.getlogin()
|
||||
# Fallback to 'default_user' if USER is not set
|
||||
user_name = os.getenv('USER', 'default_user')
|
||||
|
||||
# Operating System
|
||||
os_name = platform.system()
|
||||
|
Loading…
Reference in New Issue
Block a user