Re: how to change sys.path?



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('@')])"
.