Merge pull request #288 from pastcompute/my_fixes_1
Fix issues with android.p4a_dir spec file property
This commit is contained in:
commit
a113e46f26
1 changed files with 6 additions and 4 deletions
|
@ -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(
|
||||
|
|
Loading…
Reference in a new issue