Closed ex-nerd closed 6 years ago
Is there other standard ways? Just to implement all of them...
There are a bunch of different ways in python to interact with the os.environ
dictionary (just like any dictionary), but os.getenv()
is the only other way I know of. This has as good a breakdown as anything else: https://stackoverflow.com/questions/4906977/access-environment-variables-from-python
implemented in 0.6
os.getenv('VAR_NAME')
is one of several ways to get at environment variables in python, but does not seem to be supported in the same way thatos.environ.get('VAR_NAME')
and others are.