Changed p4a command order to work with argparse
This commit is contained in:
parent
5e3e1ec0f5
commit
22317365f4
1 changed files with 3 additions and 3 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue