[Twisted-web] CGI is not working on windows
glyph at divmod.com
glyph at divmod.com
Sun Apr 9 13:54:23 CDT 2006
On Sun, 09 Apr 2006 14:04:58 +0200, Fabian Steiner <lists at fabis-site.net> wrote:
> filter = r'"C:\Python24\python.exe -u"'
>What did I do wrong? Any hints?
"filter" is used as the executable argument to spawnProcess - which is a string indicating the file to load the program from. There is no file named
'"C:\Python24\python.exe -u"' on your computer, presumably it's "C:\Python24\python.exe". (Remember that file names can have spaces in them.)
In other words, FilteredScript isn't going to do what you want if you need to add the "-u" argument to Python, either on UNIX or on Windows. Luckily the one relevant method it implements is only 3 lines long, so it should serve as a good example for your own CGIScript-derived implementation of process filtering.
More information about the Twisted-web
mailing list