mirror of
https://gitlab.com/fdroid/fdroidserver.git
synced 2024-08-16 19:30:09 +02:00
Expand vars properly
This commit is contained in:
parent
173ff21d70
commit
c8b417bf4a
@ -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'):
|
||||
|
Loading…
Reference in New Issue
Block a user