mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-11-05 23:10:29 +03:00
Take "$VALUE" settings from environment variables
Set sdk_path and ndk_path defaults to $ANDROID_HOME and $ANDROID_NDK
This commit is contained in:
parent
5fc48172a7
commit
9ecf6fcf74
2 changed files with 13 additions and 9 deletions
|
|
@ -67,6 +67,11 @@ def read_config(opts, config_file='config.py'):
|
|||
if options.verbose:
|
||||
print "Reading %s..." % config_file
|
||||
execfile(config_file, config)
|
||||
for k, v in config.items():
|
||||
if type(v) != str:
|
||||
continue
|
||||
if v[0] == '$':
|
||||
config[k] = os.environ[v[1:]]
|
||||
return config
|
||||
|
||||
def getapkname(app, build):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue