How to tell a Python program where a shared library is?
Edward C. Jones
edcjones at erols.com
Fri May 4 00:08:16 EDT 2001
More information about the Python-list mailing list
Fri May 4 00:08:16 EDT 2001
- Previous message (by thread): How to tell a Python program where a shared library is?
- Next message (by thread): How to tell a Python program where a shared library is?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Fredrik Lundh wrote:
> Edward C. Jones wrote:
> > Suppose I have a shared library, say "mymodule.so". How do I tell a Python
> > program where "mymodule.so" is? If necessary I can change the PATH environment
> > variable. How is this done?
>
> import the sys module, and modify the sys.path variable (it's an
> ordinary list, and can be modified using append, insert, etc)
>
> import sys
> sys.path.append("/mypythondirectory")
>
> Cheers /F
Didn't work yesterday, works today. Perhaps something to do with ldconfig.
Thanks,
Ed Jones
- Previous message (by thread): How to tell a Python program where a shared library is?
- Next message (by thread): How to tell a Python program where a shared library is?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list