CGIHTTPserver looze PYTHONPATH
vincent delft
vincent_delft at yahoo.com
Sun Jul 13 11:22:58 EDT 2003
I'm using Python 2.2.2
the standard cgihttpserver (example given in the python doc).
All HTML and CGI work.
BUT
by writing a simple python-cgi script like this :
"
#!/usr/bin/env python
import os
print "<html>%s</html>" % os.environ
"
I've discover that the environement variable are lost.
For example PYTHONPATH is no more present.
Can you explain me why ?
Does this is a bug ?
How can I keep my PYTHONPATH variable across my python-cgi ?
(I don't want to add os.putenv on top of each python-cgi script)
Thanks
More information about the Python-list
mailing list