How do I add permanently to Pythons sys.path?
lists at cheimes.de
Tue Sep 16 17:56:19 CEST 2008
> a temp solution is to append it to that list:
> a permanent solution is to add it to the environment variable
> (no idea where to set this in windows)
> $PYTHONPATH = "/C:/Python25/Progs/"
Don't append a / or \!Use "C:/Python25/Progs" instead of
"C:/Python25/Progs/". The trailing slash causes trouble on Windows.
The reason for the trouble is design decision from Microsoft. The low
level stat() syscall returns an error for "C:\\Python25\\Progs\\" but it
returns success for "C:\\Python25\\Progs".
More information about the Python-list