From b80c469383cdca105cfcc5f03c1f4cc249c4fe27 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B6=93=E2=82=AC=E7=BB=BE=E8=B7=A8=E4=BC=92?= Date: Mon, 8 Aug 2022 22:22:34 +0800 Subject: [PATCH] Fix ci --- tools/tolua/genbindings.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tools/tolua/genbindings.py b/tools/tolua/genbindings.py index a683fbde37..54220e7019 100644 --- a/tools/tolua/genbindings.py +++ b/tools/tolua/genbindings.py @@ -26,7 +26,9 @@ def _check_ndk_root_env(): break break - if ANDROID_NDK == None: raise + if ANDROID_NDK == None: + ANDROID_NDK = os.environ['ANDROID_NDK'] + if not os.path.isdir(ANDROID_NDK): raise except Exception: print("The ndk-r19c not installed in '{0}{1}ndk', please install via cmdline-tools/bin/sdkmanager --verbose --sdk_root=D:\\dev\\adt\\sdk \"ndk;19.2.5345600\"".format(sdkRoot, os.path.sep))