Finding dynamic libraries
Robert Kern
robert.kern at gmail.com
Sun Sep 17 04:22:01 EDT 2006
MonkeeSage wrote:
> Robert Kern wrote:
>> It depends on the OS. Most Linux systems do not.
>
> Hmm. Looks like 'man dlopen' confirms that (on my box anyway). It looks
> like the working directory is never searched at all (unless it is
> explicitly listed somewhere). Bummer. What about using ldconfig -l?
Doesn't exist on one of the platforms the OP is using, namely OS X.
It's simple enough to write a wrapper script around one's test runner that will
set {DYLD,LD}_LIBRARY_PATH before starting the python executable.
--
Robert Kern
"I have come to believe that the whole world is an enigma, a harmless enigma
that is made terrible by our own mad attempt to interpret it as though it had
an underlying truth."
-- Umberto Eco
More information about the Python-list
mailing list