CGIHTTPServer

Tres Seaver tseaver at starbase.neosoft.com
Mon Oct 18 23:39:38 EDT 1999


In article <3807B4D0.127E7261 at prescod.net>,
Paul Prescod  <paul at prescod.net> wrote:
>Okay, I'm an idiot. On a couple of different occaisions I have needed to
>do some CGI prototoyping and I have found CGIServer. "Cool", I say. Then
>I try to get it working on Windows, changing things here and there until
>I realize (at "fork") that its hopeless. The experience is so annoying
>that I erase it from my brain until the next time. (or perhaps it isn't
>frustrating ENOUGH).

Heh, I've done it at least twice myself, so maybe we're both idiots.

>
>I would appreciate a comment at the top of that program that says that
>it doesn't run on Windows. Perhaps it could even test for os.fork at the
>beginning and crash if it isn't installed.

  if sys.platform == 'win32' :
	raise "CGIServer won't run on Windows!"

should work fine.

Tres.
-- 
---------------------------------------------------------------
Tres Seaver           tseaver at palladion.com       713-523-6582
Palladion Software    http://www.palladion.com




More information about the Python-list mailing list