+= doesn't work in python cgi's

Markus Schaber markus at schabi.de
Wed Oct 10 05:06:02 EDT 2001


Oleg Broytmann <phd at phd.pp.ru> schrub:

> On Mon, Oct 08, 2001 at 06:18:43PM +0800, Michael Palm wrote:
>> I have a strange error in that += doesn't seem to work in a cgi
>> program
>> 
>> #!/usr/bin/env python
> 
>    Your CGI has different search PATH, and is running under Python
>    1.5.2.
> Either use full path to Python 2.0+, or change search PATH, it is
> configured in httpd configuration.

Maybe it even helps to change the first line to:

#!/usr/bin/env python2

markus
-- 
You don't have to be Microsoft to suck... but it helps.
(Tim Hammerquist in comp.lang.python)



More information about the Python-list mailing list