Changed p4a command order to work with argparse

This commit is contained in:
Alexander Taylor 2016-07-06 00:12:09 +01:00
parent 5e3e1ec0f5
commit 22317365f4

View file

@ -19,11 +19,11 @@ class TargetAndroidNew(TargetAndroid):
super(TargetAndroidNew, self).__init__(buildozer) super(TargetAndroidNew, self).__init__(buildozer)
self._build_dir = join(self.buildozer.platform_dir, 'build') self._build_dir = join(self.buildozer.platform_dir, 'build')
color = 'always' if USE_COLOR else 'never' color = 'always' if USE_COLOR else 'never'
self._p4a_cmd = ('python -m pythonforandroid.toolchain --color={} ' self._p4a_cmd = ('python -m pythonforandroid.toolchain ')
'--storage-dir={} ').format(color, self._build_dir)
self._p4a_bootstrap = self.buildozer.config.getdefault( self._p4a_bootstrap = self.buildozer.config.getdefault(
'app', 'android.bootstrap', 'sdl2') '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): def _p4a(self, cmd, **kwargs):
kwargs.setdefault('cwd', self.pa_dir) kwargs.setdefault('cwd', self.pa_dir)