diff options
| author | bwarsaw | 1999-01-08 06:04:22 +0000 |
|---|---|---|
| committer | bwarsaw | 1999-01-08 06:04:22 +0000 |
| commit | a34762ab857cc7e2fd37ac84ca5ccf58b2cfcbe6 (patch) | |
| tree | 3bf72d161e6610085b2a1ec0b350a6530b9f777e /scripts/driver | |
| parent | 52ee9e7e8c15e50a5be19b1a7fa0247270e0d516 (diff) | |
| download | mailman-a34762ab857cc7e2fd37ac84ca5ccf58b2cfcbe6.tar.gz mailman-a34762ab857cc7e2fd37ac84ca5ccf58b2cfcbe6.tar.zst mailman-a34762ab857cc7e2fd37ac84ca5ccf58b2cfcbe6.zip | |
Diffstat (limited to 'scripts/driver')
| -rw-r--r-- | scripts/driver | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/scripts/driver b/scripts/driver index 8b5c9a2a5..c09f2f576 100644 --- a/scripts/driver +++ b/scripts/driver @@ -87,6 +87,16 @@ def run_main(): manual_reprime=1, nofail=0, immediate=1) + # pre-load the `cgi' module. we do this because we're distributing a + # slightly different version than the standard Python module. it's + # essentially Python 1.5.2's module, with an experimental patch to + # handle clients that give bogus or non-existant content-type headers. + # + # we assign sys.modules['cgi'] to this special cgi module because we + # don't want to have to rewrite all the Mailman.Cgi modules to get the + # special one. + import Mailman.pythonlib.cgi + sys.modules['cgi'] = Mailman.pythonlib.cgi # The name of the module to run is passed in argv[1]. What we # actually do is import the module named by argv[1] that lives in the # Mailman.Cgi package. That module must have a main() function, which |
