How to tell a Python program where a shared library is?
William Park
parkw at better.net
Thu May 3 09:35:49 EDT 2001
On Thu, May 03, 2001 at 01:04:19PM -0400, 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?
>
> Thanks,
> Ed Jones
The path is determined from 'sys.path'. You can add to local path by
setting environment variable PYTHONPATH.
--William Park, Open Geometry Consulting, Mississauga, Ontario, Canada.
8 CPUs, Linux, Python, LaTeX, vim, mutt
More information about the Python-list
mailing list