add back the p4a_branch attribute for default value

This commit is contained in:
gabriel pettier 2016-05-09 00:00:41 +02:00
parent 9cd2d17a38
commit bc58394308

View file

@ -36,6 +36,7 @@ from buildozer.libs.version import parse
class TargetAndroid(Target): class TargetAndroid(Target):
targetname = 'android' targetname = 'android'
p4a_directory = "python-for-android" p4a_directory = "python-for-android"
p4a_branch = 'old_toolchain'
p4a_apk_cmd = "python build.py" p4a_apk_cmd = "python build.py"
@property @property
@ -463,7 +464,7 @@ class TargetAndroid(Target):
def install_platform(self): def install_platform(self):
cmd = self.buildozer.cmd cmd = self.buildozer.cmd
source = self.buildozer.config.getdefault('app', 'android.branch', source = self.buildozer.config.getdefault('app', 'android.branch',
'old_toolchain') self.p4a_branch)
self.pa_dir = pa_dir = join(self.buildozer.platform_dir, self.pa_dir = pa_dir = join(self.buildozer.platform_dir,
self.p4a_directory) self.p4a_directory)
system_p4a_dir = self.buildozer.config.getdefault('app', system_p4a_dir = self.buildozer.config.getdefault('app',