Re: how to change sys.path?
- From: bruno at modulix <onurb@xxxxxxxxxxx>
- Date: Tue, 23 May 2006 10:22:35 +0200
Ju Hui wrote:
is python search module by paths in sys.path?
sys.path is the list of path where the Python interpreter will search
modules, yes.
how to change it manuallly?
"manually" ?-)
You mean "dynamically, by code" ? If yes, it's just a list. You can
modify it like you'd do for any other list.
Else, you may want to look at the PYTHON_PATH environnement variable.
--
bruno desthuilliers
python -c "print '@'.join(['.'.join([w[::-1] for w in p.split('.')]) for
p in 'onurb@xxxxxxxxxxx'.split('@')])"
.
- Follow-Ups:
- Re: how to change sys.path?
- From: Ju Hui
- Re: how to change sys.path?
- References:
- how to change sys.path?
- From: Ju Hui
- how to change sys.path?
- Prev by Date: Re: manual http request
- Next by Date: Re: problem with reload(sys) (doing reload on the sys module)
- Previous by thread: how to change sys.path?
- Next by thread: Re: how to change sys.path?
- Index(es):