[Python-Dev] Embedded python module search path

Jack Jansen Jack.Jansen at cwi.nl
Wed Aug 20 13:26:48 EDT 2003

On Tuesday, August 19, 2003, at 05:00 PM, Tom Emerson wrote:

> Jack Jansen writes:
>>> void Py_SetPaths(modulepath, prefix, execprefix, fullpath);
>> Note that if we're going to tackle this I think we should also have
>> a way to disable the other code that looks at the environment to set
>> the various flags.
> I think you get this for free because calculate_path is never called
> when module_search_path is set.

Nope... Look at the top of Py_Initialize() in pythonrun.c. It's
looking at all the environment variables itself.
Jack Jansen, <Jack.Jansen at cwi.nl>, http://www.cwi.nl/~jack
If I can't dance I don't want to be part of your revolution -- Emma 

More information about the Python-Dev mailing list