How to tell a Python program where a shared library is?
fredrik at pythonware.com
Thu May 3 19:52:10 CEST 2001
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)
More information about the Python-list