modules path
Python
python at rgbaz.eu
Sun Sep 7 11:13:12 EDT 2008
On 7 sep 2008, at 13:50, Gabriel Genellina wrote:
> 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
>
i read that but was wondering why some modules installed by macports
did show up
in the path and some didn't
the PYTHONPATH wasn't set anywhere in my shell
I did add it and now it works!
Thanks John & Gabriel!
gr
Arno
More information about the Python-list
mailing list