gh-71052: Implement ctypes.util.find_library on Android (GH-116379)

This commit is contained in:
Malcolm Smith 2024-03-21 13:20:57 +00:00 committed by GitHub
parent d16c9d1278
commit 1f8b24ef69
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 36 additions and 2 deletions

View file

@ -1334,8 +1334,9 @@ Here are some examples::
'libbz2.so.1.0'
>>>
On macOS, :func:`~ctypes.util.find_library` tries several predefined naming schemes and paths
to locate the library, and returns a full pathname if successful::
On macOS and Android, :func:`~ctypes.util.find_library` uses the system's
standard naming schemes and paths to locate the library, and returns a full
pathname if successful::
>>> from ctypes.util import find_library
>>> find_library("c")