From 22317365f4a2a7d4660c0636bde489ec3e0b2151 Mon Sep 17 00:00:00 2001 From: Alexander Taylor Date: Wed, 6 Jul 2016 00:12:09 +0100 Subject: [PATCH] Changed p4a command order to work with argparse --- buildozer/targets/android_new.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/buildozer/targets/android_new.py b/buildozer/targets/android_new.py index 277aa3c..f3a85ed 100644 --- a/buildozer/targets/android_new.py +++ b/buildozer/targets/android_new.py @@ -19,11 +19,11 @@ class TargetAndroidNew(TargetAndroid): super(TargetAndroidNew, self).__init__(buildozer) self._build_dir = join(self.buildozer.platform_dir, 'build') color = 'always' if USE_COLOR else 'never' - self._p4a_cmd = ('python -m pythonforandroid.toolchain --color={} ' - '--storage-dir={} ').format(color, self._build_dir) + self._p4a_cmd = ('python -m pythonforandroid.toolchain ') self._p4a_bootstrap = self.buildozer.config.getdefault( 'app', 'android.bootstrap', 'sdl2') - self.p4a_apk_cmd += self._p4a_bootstrap + self.p4a_apk_cmd += ('{} --color={} --storage-dir={}'.format( + self._p4a_bootstrap, self.color, self._build_dir) def _p4a(self, cmd, **kwargs): kwargs.setdefault('cwd', self.pa_dir)