fix sys.argv issue
authorThomas Waldmann <tw AT waldmann-edv DOT de>
Mon, 18 Jan 2010 22:28:57 +0100
changeset 545904afdde50094
parent 5458 93fbb0418225
child 5460 44c165260367
fix sys.argv issue
wiki/server/moin.cgi
     1.1 --- a/wiki/server/moin.cgi	Mon Jan 18 13:46:32 2010 +0100
     1.2 +++ b/wiki/server/moin.cgi	Mon Jan 18 22:28:57 2010 +0100
     1.3 @@ -34,6 +34,9 @@
     1.4  # this works around a bug in flup's CGI autodetection (as of flup 1.0.1):
     1.5  os.environ['FCGI_FORCE_CGI'] = 'Y' # 'Y' for (slow) CGI, 'N' for FCGI
     1.6  
     1.7 +if 'GATEWAY_INTERFACE' in os.environ:
     1.8 +    sys.argv = []
     1.9 +
    1.10  from MoinMoin.web.flup_frontend import CGIFrontEnd
    1.11  CGIFrontEnd().run()
    1.12