From d98c6f8de60a1e5449ca7ba9ae817d07b01792ea Mon Sep 17 00:00:00 2001 From: minggo Date: Fri, 1 Nov 2013 14:27:29 +0800 Subject: [PATCH] can run build-android.python in any path --- build/android-build.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build/android-build.py b/build/android-build.py index 62bc226e77..e59ee61bf1 100755 --- a/build/android-build.py +++ b/build/android-build.py @@ -164,7 +164,7 @@ def build_samples(target,ndk_build_param): select_toolchain_version() build_targets = caculate_built_samples(target) - current_dir = os.getcwd() + current_dir = os.path.dirname(os.path.realpath(__file__)) cocos_root = os.path.join(current_dir, "..") app_android_root = ''