Re: Importing binary modules

2007-03-01 Thread Thinker
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 > Well, unfortunately I don't have access to the binary like that. It > is given me, I just wanted to use it the way it was compiled. What > could be done then? You have better set LD_LIBRARY_PATH environment variable, or use ldconfig (plz, man ldconf

Re: Importing binary modules

2007-03-01 Thread André
On 1 mar, 12:21, Thinker <[EMAIL PROTECTED]> wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > [EMAIL PROTECTED] wrote: > > cut .. > > > The problem appears when libMyNewModule.so depends on another > > library, say libfoo.so, which sits also in /my/module/dir. In tha

Re: Importing binary modules

2007-03-01 Thread Thinker
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 [EMAIL PROTECTED] wrote: cut .. > > The problem appears when libMyNewModule.so depends on another > library, say libfoo.so, which sits also in /my/module/dir. In that > case, '/my/ module/dir', needs to be preset in the LD_LIBRARY_P

Importing binary modules

2007-03-01 Thread andre . dos . anjos
How can I, in python (linux, python version >= 2.4.2), dynamically set the path and import a binary module that depends on libraries which are not declared in LD_LIBRARY_PATH or any other automated linker path when python starts? This is a an example: Suppose I have a new python module, called My