diff options
| author | bwarsaw | 2002-02-23 06:32:06 +0000 |
|---|---|---|
| committer | bwarsaw | 2002-02-23 06:32:06 +0000 |
| commit | eaa5afcb526edc39c612fa1ee8d7bf5e0b09c3d8 (patch) | |
| tree | 7e5a5ce2c37ee07fdde4c48deefce7186f7bf7d3 | |
| parent | e8b23454cbb0a6ec1d2167c1c92b43218cf20feb (diff) | |
| download | mailman-eaa5afcb526edc39c612fa1ee8d7bf5e0b09c3d8.tar.gz mailman-eaa5afcb526edc39c612fa1ee8d7bf5e0b09c3d8.tar.zst mailman-eaa5afcb526edc39c612fa1ee8d7bf5e0b09c3d8.zip | |
| -rwxr-xr-x | cron/gate_news | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/cron/gate_news b/cron/gate_news index 549e49bf4..23020fc4f 100755 --- a/cron/gate_news +++ b/cron/gate_news @@ -1,6 +1,6 @@ #! @PYTHON@ # -# Copyright (C) 1998,1999,2000,2001 by the Free Software Foundation, Inc. +# Copyright (C) 1998,1999,2000,2001,2002 by the Free Software Foundation, Inc. # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License @@ -36,9 +36,10 @@ import socket import nntplib import paths -# mm_cfg must be imported before the other modules, due to the side-effect of -# it hacking sys.paths to include site-packages. Without this, running this -# script from cron with python -S will fail. +# Import this /after/ paths so that the sys.path is properly hacked +import email.Errors +from email.Parser import Parser + from Mailman import mm_cfg from Mailman import MailList from Mailman import Utils @@ -49,9 +50,6 @@ from Mailman.Queue.sbcache import get_switchboard from Mailman.Logging.Utils import LogStdErr from Mailman.Logging.Syslog import syslog -import email.Errors -from email.Parser import Parser - # Work around known problems with some RedHat cron daemons import signal signal.signal(signal.SIGCHLD, signal.SIG_DFL) |
