Take "$VALUE" settings from environment variables

Set sdk_path and ndk_path defaults to $ANDROID_HOME and $ANDROID_NDK
This commit is contained in:
Daniel Martí 2013-12-06 12:37:53 +01:00
parent 5fc48172a7
commit 9ecf6fcf74
2 changed files with 13 additions and 9 deletions

View file

@ -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):