diff --git a/buildozer/targets/android.py b/buildozer/targets/android.py index e2c9e95..2f02137 100644 --- a/buildozer/targets/android.py +++ b/buildozer/targets/android.py @@ -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(