10000 Fixed libpymodules.so loading location · auronsan/python-for-android@7c1da72 · GitHub
[go: up one dir, main page]

Skip to content

Commit 7c1da72

Browse files
committed
Fixed libpymodules.so loading location
1 parent f45bc0c commit 7c1da72

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/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)
0