Skip to content

Commit 8113a1d

Browse files
committed
Reverted custom-loader.patch to use ANDROID_APP_PATH
1 parent 9af9f06 commit 8113a1d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pythonforandroid/recipes/python2/patches/custom-loader.patch

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717
+
1818
+ /* Ensure we have access to libpymodules. */
1919
+ if (libpymodules == -1) {
20-
+ printf("ANDROID_PRIVATE = %s\n", getenv("ANDROID_PRIVATE"));
21-
+ PyOS_snprintf(pathbuf, sizeof(pathbuf), "%s/app/libpymodules.so", getenv("ANDROID_PRIVATE"));
20+
+ printf("ANDROID_APP_PATH = %s\n", getenv("ANDROID_APP_PATH"));
21+
+ PyOS_snprintf(pathbuf, sizeof(pathbuf), "%s/libpymodules.so", getenv("ANDROID_APP_PATH"));
2222
+ libpymodules = dlopen(pathbuf, RTLD_NOW);
2323
+
2424
+ if (libpymodules == NULL) {

0 commit comments

Comments
 (0)