diff options
author | Martin Panter <vadmium+py@gmail.com> | 2016-03-10 01:06:23 (GMT) |
---|---|---|
committer | Martin Panter <vadmium+py@gmail.com> | 2016-03-10 01:06:23 (GMT) |
commit | b9f3114d42601b07c9830af8b18330bff475bcfc (patch) | |
tree | 3ffa3720744c56da04b404561aaf30d34597a579 /Doc | |
parent | aadaa3614e9aab723b3563801dfc700c0dae46e3 (diff) | |
download | cpython-b9f3114d42601b07c9830af8b18330bff475bcfc.zip cpython-b9f3114d42601b07c9830af8b18330bff475bcfc.tar.gz cpython-b9f3114d42601b07c9830af8b18330bff475bcfc.tar.bz2 |
Issue #21042: Return full path in ctypes.util.find_library() on Linux
Patch by Tamás Bence Gedai.
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/library/ctypes.rst | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/Doc/library/ctypes.rst b/Doc/library/ctypes.rst index 3b0c956..58e1ea3 100644 --- a/Doc/library/ctypes.rst +++ b/Doc/library/ctypes.rst @@ -1252,15 +1252,15 @@ The exact functionality is system dependent. On Linux, :func:`find_library` tries to run external programs (``/sbin/ldconfig``, ``gcc``, and ``objdump``) to find the library file. It -returns the filename of the library file. Here are some examples:: +returns the absolute path of the library file. Here are some examples:: >>> from ctypes.util import find_library >>> find_library("m") - 'libm.so.6' + '/lib/x86_64-linux-gnu/libm.so.6' >>> find_library("c") - 'libc.so.6' + '/lib/x86_64-linux-gnu/libc.so.6' >>> find_library("bz2") - 'libbz2.so.1.0' + '/lib/x86_64-linux-gnu/libbz2.so.1.0' >>> On OS X, :func:`find_library` tries several predefined naming schemes and paths @@ -1829,6 +1829,9 @@ Utility functions The exact functionality is system dependent. + .. versionchanged:: 3.6 + On Linux it returns an absolute path. + .. function:: find_msvcrt() :module: ctypes.util |