4
1
mirror of https://github.com/pfloos/quack synced 2024-12-22 04:14:26 +01:00

user env on github machines

This commit is contained in:
Abdallah Ammar 2024-11-15 18:55:39 +01:00
parent 3e5e88d521
commit fe01afdbdf

View File

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