Merge pull request #405 from inclement/fix_local_recipes

Added p4a.local_recipes to default.spec and handled its absence
This commit is contained in:
Alexander Taylor 2016-10-08 17:20:52 +01:00 committed by GitHub
commit 0a8c644d74
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):