Re: Finding dynamic libraries

2006-09-17 Thread Robert Kern
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 ldconf

Re: Finding dynamic libraries

2006-09-17 Thread MonkeeSage
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? Regards, Jordan --

Re: Finding dynamic libraries

2006-09-17 Thread Robert Kern
MonkeeSage wrote: > Robert Kern wrote: >> No, his extensions link against other shared libraries which are not Python >> extensions. Those shared libraries are in nonstandard locations because he is >> running his tests before installing the libraries and his Python code. > > In that case, couldn'

Re: Finding dynamic libraries

2006-09-17 Thread MonkeeSage
Robert Kern wrote: > No, his extensions link against other shared libraries which are not Python > extensions. Those shared libraries are in nonstandard locations because he is > running his tests before installing the libraries and his Python code. In that case, couldn't it be done by placing a c

Re: Finding dynamic libraries

2006-09-16 Thread Robert Kern
MonkeeSage wrote: > Bill Spotz wrote: >> Is there a way to tell an executing python script where to look for >> dynamically-loaded libraries? > > If I understand, you want to tell an already running python process to > import some extensions from arbitrary locations? No, his extensions link again

Re: Finding dynamic libraries

2006-09-15 Thread MonkeeSage
Bill Spotz wrote: > Is there a way to tell an executing python script where to look for > dynamically-loaded libraries? If I understand, you want to tell an already running python process to import some extensions from arbitrary locations? If that is correct, you could use a file to hold the dynam

Re: Finding dynamic libraries

2006-09-15 Thread Robert Kern
Bill Spotz wrote: > Hi, > > Is there a way to tell an executing python script where to look for > dynamically-loaded libraries? > > My situation is that that I am developing python wrappers for a large > software project. I create python wrappers with swig, and those > extension modules li

Finding dynamic libraries

2006-09-15 Thread Bill Spotz
Hi, Is there a way to tell an executing python script where to look for dynamically-loaded libraries? My situation is that that I am developing python wrappers for a large software project. I create python wrappers with swig, and those extension modules link against dynamic libraries from