ctypes CDLL - which paths are searched?

Thomas Heller theller at ctypes.org
Mon Jan 21 15:42:59 EST 2008


Helmut Jarausch schrieb:
> Hi,
> 
> how can I specify the paths to be searched for a dynamic library
> to be loaded by ctypes' CDLL class on a Linux system.
> 
> Do I have to set os.environment['LD_LIBRARY_PATH'] ?
> 

ctypes passes the argument given to CDLL(path) straight to
the dlopen(3) call, so your system documentation should tell you.

Thomas




More information about the Python-list mailing list