1
0
mirror of https://gitlab.com/fdroid/fdroidserver.git synced 2024-11-04 14:30:11 +01:00

Expand vars properly

This commit is contained in:
Daniel Martí 2013-12-07 13:20:22 +01:00
parent 173ff21d70
commit c8b417bf4a

View File

@ -77,8 +77,7 @@ def read_config(opts, config_file='config.py'):
for k, v in config.items(): for k, v in config.items():
if type(v) != str: if type(v) != str:
continue continue
if v[0] == '$': config[k] = os.path.expandvars(v)
config[k] = os.environ[v[1:]]
# Check that commands and binaries do exist # Check that commands and binaries do exist
for key in ('mvn3', 'gradle'): for key in ('mvn3', 'gradle'):