Skip to content

Commit 8db9f34

Browse files
authored
Merge pull request #1291 from AndreMiras/feature/fix_file_not_found_on_external_sd
fixes find_library when deployed external storage
2 parents 6905c2b + 58f7618 commit 8db9f34

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pythonforandroid/recipes/python2/patches/ctypes-find-library-updated.patch

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ index 52b3520..01b13a9 100644
1212
+if True:
1313
+ def find_library(name):
1414
+ # Check the user app lib dir
15-
+ app_root = os.path.abspath('./').split(os.path.sep)[0:4]
15+
+ app_root = os.path.abspath('../../').split(os.path.sep)
1616
+ lib_search = os.path.sep.join(app_root) + os.path.sep + 'lib'
1717
+ for filename in os.listdir(lib_search):
1818
+ if filename.endswith('.so') and name in filename:

0 commit comments

Comments
 (0)