dllist() (CPython 3.14 ctypes.util.dllist()) returns the paths of the
shared libraries loaded in the process: EnumProcessModules on Windows, dyld
on macOS, dl_iterate_phdr on other POSIX systems (glibc lists the main
program as ""). It is undefined only on a POSIX system without
dl_iterate_phdr, where CPython has none.
Python
ctypes.util: find_library anddllist().dllist()(CPython 3.14ctypes.util.dllist()) returns the paths of the shared libraries loaded in the process: EnumProcessModules on Windows, dyld on macOS,dl_iterate_phdron other POSIX systems (glibc lists the main program as""). It isundefinedonly on a POSIX system withoutdl_iterate_phdr, where CPython has none.