access environment variables in Python inside many files
access environment variables in Python inside many files Question: if i need to get the value of an environment variables inside many files in the project Python (flask framework) should i use os.environ[‘HOME’] for every use or there is better way? for example: authroutes.py username= os.environ.get("USERNAME") and in routes under posts postsroutes.py username= os.environ.get("USERNAME") Asked …