mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-09-15 23:42:37 +03:00
Only expand paths on config items that can actually be paths
This commit is contained in:
parent
88dc0b2bb5
commit
37aa3a7b99
1 changed files with 3 additions and 4 deletions
|
@ -79,10 +79,9 @@ def fill_config_defaults(config):
|
|||
if k not in config:
|
||||
config[k] = v
|
||||
|
||||
# Expand environment variables
|
||||
for k, v in config.items():
|
||||
if type(v) != str:
|
||||
continue
|
||||
# Expand paths (~users and $vars)
|
||||
for k in ['sdk_path', 'ndk_path', 'ant', 'mvn3', 'gradle', 'keystore', 'repo_icon']:
|
||||
v = config[k]
|
||||
orig = v
|
||||
v = os.path.expanduser(v)
|
||||
v = os.path.expandvars(v)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue