1
0
mirror of https://gitlab.com/fdroid/fdroidserver.git synced 2024-11-12 18:20: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():
if type(v) != str:
continue
if v[0] == '$':
config[k] = os.environ[v[1:]]
config[k] = os.path.expandvars(v)
# Check that commands and binaries do exist
for key in ('mvn3', 'gradle'):