This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author risto3
Recipients automatthias, jcea, martin.panter, risto3
Date 2016-04-28.04:44:47
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1461818687.45.0.832784843345.issue19317@psf.upfronthosting.co.za>
In-reply-to
Content
An example:

richard@omnis:/home/richard$ python2.7
Python 2.7.11 (default, Apr 27 2016, 04:35:25) 
[GCC 4.9.3] on sunos5
Type "help", "copyright", "credits" or "license" for more information.
>>> from ctypes import *
>>> from ctypes.util import find_library
>>> find_library('magic')
>>> cdll.LoadLibrary('libmagic.so')
<CDLL 'libmagic.so', handle fe240840 at fe7879ac>

Finally, as you can see above, LoadLibrary() works fine to load '/opt/local/libmagic.so' because of the runpath in the python binary, but find_library() does not because the runpath is ignored.

This should probably be considered as 'unexpected' behaviour.
History
Date User Action Args
2016-04-28 04:44:47risto3setrecipients: + risto3, jcea, automatthias, martin.panter
2016-04-28 04:44:47risto3setmessageid: <1461818687.45.0.832784843345.issue19317@psf.upfronthosting.co.za>
2016-04-28 04:44:47risto3linkissue19317 messages
2016-04-28 04:44:47risto3create