From c2d930df0032beb7dfe153d41a6249e761e40aa0 Mon Sep 17 00:00:00 2001 From: zhangbin Date: Thu, 23 Jun 2016 17:09:07 +0800 Subject: [PATCH] Change the implementation of checking NDK path on windows. --- setup.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 91ee4c8760..9636b826c3 100755 --- a/setup.py +++ b/setup.py @@ -356,7 +356,11 @@ class SetEnvVar(object): if not ndk_root: return False - ndk_build_path = os.path.join(ndk_root, 'ndk-build') + if self._isWindows(): + ndk_build_path = os.path.join(ndk_root, 'ndk-build.cmd') + else: + ndk_build_path = os.path.join(ndk_root, 'ndk-build') + if os.path.isfile(ndk_build_path): return True else: