I have a demand to load all dynamic libraries given in a directory.
ctypes gives me the capability of loading a dynamic library without considering the prefix and suffix of a library file.
However I don’t know if there’s an existing API to load all dynamic libraries in a directory, or just provide me a value to indicate the suffix of a dynamic library.
Can I do this in Python without implementing the functionalities myself? I don’t want to do this
if osname == 'nt': suffix = '.dll', '.pyd' elif osname == ...