How does IPython modify the sys.path?
Fredrik Lundh
fredrik at pythonware.com
Fri Sep 22 02:24:52 EDT 2006
Daniel Mark wrote:
> However, I cannot figure out how IPython can change my sys.path.
>
> I refer to all the following sources
> 1> http://www.python.org/doc/current/inst/search-path.html Installing
> Python Modules
> 2> KEY_LOCAL_MACHINE\Software\Python\PythonCore\2.4\PythonPath
> 3> My machine has no environment variable "PYTHONPATH"
> 4> There is no *.pth file under
> C:\Program Files\Python24\Lib\site-packages
> that contains that information (i.e. C:\\Documents and
> Settings\\Daniel\\_ipython)
did you look up sys.path in the documentation ?
A list of strings that specifies the search path for modules.
Initialized from the environment variable PYTHONPATH, plus an
installation-dependent default. /.../
A program is free to modify this list for its own purposes.
http://pyref.infogami.com/sys.path
</F>
More information about the Python-list
mailing list