Skip to content

Commit 4db1711

Browse files
committed
Set $ANDROID_UNPACK in start.c if it isn't set already
1 parent f385ceb commit 4db1711

File tree

1 file changed

+5
-0
lines changed
  • pythonforandroid/bootstraps/sdl2/build/jni/src

1 file changed

+5
-0
lines changed

pythonforandroid/bootstraps/sdl2/build/jni/src/start.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,11 @@ int main(int argc, char *argv[]) {
8484
setenv("ANDROID_APP_PATH", env_argument, 1);
8585
env_entrypoint = getenv("ANDROID_ENTRYPOINT");
8686
env_logname = getenv("PYTHON_NAME");
87+
88+
if (!getenv("ANDROID_UNPACK")) {
89+
/* ANDROID_UNPACK currently isn't set in services */
90+
setenv("ANDROID_UNPACK", env_argument, 1);
91+
}
8792

8893
if (env_logname == NULL) {
8994
env_logname = "python";

0 commit comments

Comments
 (0)