Merge pull request #484 from inclement/fix_android_new_executable

Made buildozer run p4a using the current sys.executable
This commit is contained in:
Mathieu Virbel 2017-04-17 11:58:10 +02:00 committed by GitHub
commit 959bdb3d7f

View file

@ -20,7 +20,8 @@ class TargetAndroidNew(TargetAndroid):
def __init__(self, buildozer): def __init__(self, buildozer):
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')
self._p4a_cmd = 'python -m pythonforandroid.toolchain ' executable = sys.executable or 'python'
self._p4a_cmd = '{} -m pythonforandroid.toolchain '.format(executable)
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 += self._p4a_bootstrap