Merge pull request #288 from pastcompute/my_fixes_1

Fix issues with android.p4a_dir spec file property
This commit is contained in:
Akshay Arora 2016-04-23 23:14:41 +05:30
commit a113e46f26

View file

@ -464,13 +464,15 @@ class TargetAndroid(Target):
cmd = self.buildozer.cmd
self.pa_dir = pa_dir = join(self.buildozer.platform_dir,
self.p4a_directory)
system_p4a_dir = self.buildozer.config.getdefault('app',
'android.p4a_dir')
system_p4a_dir = expanduser(self.buildozer.config.getdefault('app',
'android.p4a_dir'))
if system_p4a_dir:
self.pa_dir = pa_dir = system_p4a_dir
if not self.buildozer.file_exists(pa_dir):
self.buildozer.critical(
'Path for android.p4a_dir doesnt exists')
self.buildozer.error(
'Path for android.p4a_dir does not exist')
self.buildozer.error('')
raise BuildozerException()
else:
if not self.buildozer.file_exists(pa_dir):
cmd(