Added p4a.local_recipes and handled its absence

This commit is contained in:
Alexander Taylor 2016-10-01 17:03:25 +01:00
parent 272e72f31b
commit 474db95dd4
2 changed files with 4 additions and 1 deletions

View file

@ -101,6 +101,9 @@ fullscreen = 1
# (str) python-for-android git clone directory (if empty, it will be automatically cloned from github)
#android.p4a_dir =
# (str) The directory in which python-for-android should look for your own build recipes (if any)
#p4a.local_recipes =
# (list) python-for-android whitelist
#android.p4a_whitelist =

View file

@ -73,7 +73,7 @@ class TargetAndroidNew(TargetAndroid):
return join(self._build_dir, 'dists', dist_name)
def get_local_recipes_dir(self):
local_recipes = self.buildozer.config.get('app', 'p4a.local_recipes')
local_recipes = self.buildozer.config.getdefault('app', 'p4a.local_recipes')
return realpath(expanduser(local_recipes)) if local_recipes else None
def execute_build_package(self, build_cmd):