diff options
| author | bwarsaw | 2001-07-27 16:35:45 +0000 |
|---|---|---|
| committer | bwarsaw | 2001-07-27 16:35:45 +0000 |
| commit | 4d7275ad18caf7b115799334c56ab9a08898ae5e (patch) | |
| tree | 75fdfdb455c96ff451fa397bccfd634a165e0662 /cron/bumpdigests | |
| parent | ff697d1f764be5de47fc3756e0b92a75250bd4fb (diff) | |
| download | mailman-4d7275ad18caf7b115799334c56ab9a08898ae5e.tar.gz mailman-4d7275ad18caf7b115799334c56ab9a08898ae5e.tar.zst mailman-4d7275ad18caf7b115799334c56ab9a08898ae5e.zip | |
Reorder the imports so mm_cfg is always the first module imported
after paths. Because these scripts are run from cron with "python -S"
they must import mm_cfg before attempting to import mimelib; mm_cfg
hacks sys.path to include site-packages which -S inhibits.
For those scripts that already import mm_cfg, add a comment describing
the import order dependencies. For those that didn't, add a comment
about why it's being imported.
Also, gate_news: Removed the _ContinueLoop docstring so translators
have one less non-translatable docstring to worry about.
Closes Thomas's SF patch #443803.
Diffstat (limited to 'cron/bumpdigests')
| -rw-r--r-- | cron/bumpdigests | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/cron/bumpdigests b/cron/bumpdigests index af51d7cbb..13c368b3b 100644 --- a/cron/bumpdigests +++ b/cron/bumpdigests @@ -33,8 +33,12 @@ import sys import getopt import paths -from Mailman import MailList +# Import mm_cfg so that sys.path can get munged correctly to include Python's +# site-packages directory. Without this runing this script from cron with +# python -S will fail to import mimelib. +from Mailman import mm_cfg from Mailman import Utils +from Mailman import MailList from Mailman import Errors from Mailman.i18n import _ |
