fix bad placement of expanduser()

This commit is contained in:
Ryan Pessa 2016-04-26 11:38:47 -05:00
parent e58d89c7b7
commit 5c4e5f1d6c

View file

@ -465,10 +465,10 @@ class TargetAndroid(Target):
cmd = self.buildozer.cmd
self.pa_dir = pa_dir = join(self.buildozer.platform_dir,
self.p4a_directory)
system_p4a_dir = expanduser(self.buildozer.config.getdefault('app',
'android.p4a_dir'))
system_p4a_dir = self.buildozer.config.getdefault('app',
'android.p4a_dir')
if system_p4a_dir:
self.pa_dir = pa_dir = system_p4a_dir
self.pa_dir = pa_dir = expanduser(system_p4a_dir)
if not self.buildozer.file_exists(pa_dir):
self.buildozer.error(
'Path for android.p4a_dir does not exist')