Where does sys.path get initialized

Jeff Epler jepler at unpythonic.net
Mon Sep 22 04:38:08 CEST 2003

It comes from the value of the PYTHONPATH environment variable, the
location of the script being executed (or the current directory, for an
interactive interpreter), an installation path or paths, and the "site"
module.  On Windows, an environment key may be involved, but I am not
aware of any specifics.



More information about the Python-list mailing list