diff --git a/pythonforandroid/recipes/python2/patches/ctypes-find-library-updated.patch b/pythonforandroid/recipes/python2/patches/ctypes-find-library-updated.patch index b12d7a8a40..07221cc43f 100644 --- a/pythonforandroid/recipes/python2/patches/ctypes-find-library-updated.patch +++ b/pythonforandroid/recipes/python2/patches/ctypes-find-library-updated.patch @@ -12,7 +12,7 @@ index 52b3520..01b13a9 100644 +if True: + def find_library(name): + # Check the user app lib dir -+ app_root = os.path.abspath('./').split(os.path.sep)[0:4] ++ app_root = os.path.abspath('../../').split(os.path.sep) + lib_search = os.path.sep.join(app_root) + os.path.sep + 'lib' + for filename in os.listdir(lib_search): + if filename.endswith('.so') and name in filename: