[RFC] Allow to fallback to unprefixed environment variable when value not found. was [Question] Using dynaconf, how would I go about getting the well known environment Linux variable "PATH"?
See original GitHub issueIf I just wanted to get the well known environment Linux variable PATH
, how should I fetch it using dynaconf?
I tried:
settings.get('PATH', 'Noooope')
and always get Noooope
I am hoping for a behavior similar to os.environ["PATH"]
but with all the (optional) dynaconf goodness, if they are present
Issue Analytics
- State:
- Created a year ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
[RFC] Allow to fallback to unprefixed environment variable when ...
If I just wanted to get the well known environment Linux variable PATH , how should I fetch it using dynaconf? I tried:...
Read more >Env vars - Dynaconf - 3.1.11
When loading environment variables, dynaconf will parse the value using toml language so it will try to automatic convert to the proper data ......
Read more >python - Unable to install PyRFC-2.0.4 - Stack Overflow
1 Answer 1 · Create the SAP NW RFC SDK home directory, e.g. c:\nwrfcsdk · Set the SAPNWRFC_HOME env variable: SAPNWRFC_HOME=c:\nwrfcsdk · Unpack ......
Read more >John: doc/CHANGES-jumbo - Fossies
No problem seen here but in other 6 places with similar code. ... See #958 109 Allow environment variable OMP_SCALE to override john.conf ......
Read more >Issues · dynaconf/dynaconf · GitHub
[RFC] Allow to fallback to unprefixed environment variable when value not found. was [Question] Using dynaconf, how would I go about getting the...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I think the idea of this issue is to provide an API to get a value from settings and fallback to envvars.
To be implemented.
Right now the workaround is.
https://github.com/rochacbruno/dynaconf/blob/b3aff91da5a17a6e4646d439e3477bb4d21369bf/dynaconf/base.py#L465-L481