Read about our upcoming Code of Conduct on this issue

Commit 6d57d9f3 authored by Ashwin Vishnu's avatar Ashwin Vishnu
Browse files

Allow use of environment variables in site.cfg options

parent 7fb5bdfb863e
......@@ -55,6 +55,8 @@ def get_config():
if value not in ['true', 'false']:
raise ValueError('"use" should be "True" of "False".')
value = value == 'true'
else:
value = os.path.expandvars(value)
section_dict[option] = value
config_dict[section] = section_dict
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment