summaryrefslogtreecommitdiff
path: root/mailman/bin/withlist.py
diff options
context:
space:
mode:
Diffstat (limited to 'mailman/bin/withlist.py')
-rw-r--r--mailman/bin/withlist.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/mailman/bin/withlist.py b/mailman/bin/withlist.py
index 8862501d5..f180f5525 100644
--- a/mailman/bin/withlist.py
+++ b/mailman/bin/withlist.py
@@ -154,7 +154,10 @@ def main():
global LAST_MLIST, VERBOSE
parser, opts, args = parseargs()
- initialize(opts.config, not opts.quiet)
+ config_file = (os.getenv('MAILMAN_CONFIG_FILE')
+ if opts.config is None
+ else opts.config)
+ initialize(config_file, not opts.quiet)
VERBOSE = not opts.quiet
# The default for interact is true unless -r was given