all: rework context-dependent object use

Rework some of the taped together ways context-dependent objects were
replied on in-app, such as removing redundant constructs and extremely
hacky lifecycle mechanisms.
This commit is contained in:
Alexander Capehart
2022-12-31 11:12:50 -07:00
parent bf56a50b59
commit 493b0a9f32
30 changed files with 175 additions and 232 deletions
+3 -2
View File
@@ -75,11 +75,12 @@ if ndk_path is None or not os.path.isfile(os.path.join(ndk_path, "ndk-build")):
candidates.append(entry.path)
if len(candidates) > 0:
print(WARN + "warn:" + NC + " NDK_PATH was not set or invalid. multiple " +
print(WARN + "warn:" + NC + " ANDROID_NDK_HOME was not set or invalid. multiple " +
"candidates were found however:")
for i, candidate in enumerate(candidates):
print("[" + str(i) + "] " + candidate)
print(WARN + "info:" + NC + " NDK r21e is recommended for this script. Other " +
"NDKs may result in unexpected behavior.")
try:
ndk_path = candidates[int(input("enter the ndk to use [default 0]: "))]
except: