Brett Cannon added the comment:
Glad it makes sense now. =) I was writing my reply while you sent yours.
Anyway, your PYTHONPATH setting goes on to sys.path *after* the directory
containing the script being executed. This is so that when you execute Python
code somewhere it will get the local modules and packages it expects and not
some random one you accidentally masked using PYTHONPATH.
Python tracker <rep...@bugs.python.org>
Python-bugs-list mailing list