From 855821b7bc4ca5bfbcc4d57ec913261426744724 Mon Sep 17 00:00:00 2001 From: Alexander Taylor Date: Sat, 4 Jun 2016 20:42:17 +0100 Subject: [PATCH] Added toolchain_version initialisation If the toolchain version isn't found, p4a currently crashes because it's not defined rather than when this is checked for (and a more helpful error returned). --- pythonforandroid/build.py | 1 + 1 file changed, 1 insertion(+) diff --git a/pythonforandroid/build.py b/pythonforandroid/build.py index c9f9d99d27..c2b37af5e4 100644 --- a/pythonforandroid/build.py +++ b/pythonforandroid/build.py @@ -352,6 +352,7 @@ def prepare_build_environment(self, user_sdk_dir, user_ndk_dir, arch = self.archs[0] platform_dir = arch.platform_dir toolchain_prefix = arch.toolchain_prefix + toolchain_version = None self.ndk_platform = join( self.ndk_dir, 'platforms',