modules path

Gabriel Genellina gagsl-py2 at yahoo.com.ar
Sun Sep 7 07:50:50 EDT 2008


En Sat, 06 Sep 2008 20:26:24 -0300, Python <python at rgbaz.eu> escribió:

> now one question came up, how do I make those path permanent?
> i mean, sys.path.append(<path)> adds it for the current session,
> yet when i logout of IDLE and start it again it's gone...
> how do i keep it in there?

You can add that path to the PYTHONPATH environment variable, or you can put a .pth file in the current Lib directory, containing the desired path.
See http://docs.python.org/inst/search-path.html and the documentation for the site module (although it appears not to be totally accurate).

-- 
Gabriel Genellina




More information about the Python-list mailing list