Victor Lazzarini <[email protected]> added the comment:
Hi Ned,
thanks for your detailed response. I have to say that the LD_LIBRARY_PATH
partially worked in some cases, the library got loaded. However in cases where
there were dependencies, further issues appeared particularly when the link
(as revealed by otool -L) was prefixed by '@rpath'. I was able to fix these by
editing these paths (which is possible in my use case), but we just need to
note that it may cause difficulties for others.
We also found a solution to avoid needing to set the environment var. We use
the following code
ct.CDLL(ctypes.util.find_library('mylib'))
instead of just passing the library. That works well, and perhaps you may
recommend it in the docs.
----------
_______________________________________
Python tracker <[email protected]>
<https://bugs.python.org/issue43964>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com