how to change sys.path?
bruno at modulix
onurb at xiludom.gro
Tue May 23 04:22:35 EDT 2006
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 at xiludom.gro'.split('@')])"
More information about the Python-list
mailing list