[issue2936] ctypes.util.find_library() doesn't consult LD_LIBRARY_PATH

Bill Janssen report at bugs.python.org
Sat May 31 20:53:12 CEST 2008


Bill Janssen <bill.janssen at gmail.com> added the comment:

OK, I went back and read the code.  What I should be using is
"ctypes.cdll.LoadLibrary("libgoodstuff.1.dylib")".  Thanks -- I think you
can close this issue.

Bill

On Fri, May 30, 2008 at 1:58 PM, Thomas Heller <report at bugs.python.org>
wrote:

>
> Thomas Heller <theller at ctypes.org> added the comment:
>
> > The question is, which linker?  I think it should be ld.so, which links
> "on
> > demand", and does pay attention to LD_LIBRARY_PATH.  I'm not sure what
> the
> > point of find_library() is, otherwise.
>
> The best explanation is in the python docs:
> http://docs.python.org/lib/ctypes-finding-shared-libraries.html
>
> _______________________________________
> Python tracker <report at bugs.python.org>
> <http://bugs.python.org/issue2936>
> _______________________________________
>

Added file: http://bugs.python.org/file10489/unnamed

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue2936>
_______________________________________
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: unnamed
URL: <http://mail.python.org/pipermail/python-bugs-list/attachments/20080531/b7125709/attachment.txt>


More information about the Python-bugs-list mailing list