summaryrefslogtreecommitdiff
path: root/src/mailman/bin/mailman.py
diff options
context:
space:
mode:
authortoshio2012-03-14 05:30:52 +0000
committertoshio2012-03-14 05:30:52 +0000
commitd1a9979ecf35d05ed115651dcc6b8680af08b954 (patch)
treecde5caa9a9c20467b4cb3768b564d08e6a368b1a /src/mailman/bin/mailman.py
parentccde42a936f6c87032c7afd80f33ca5f3fa00b54 (diff)
parentbcc42e2201c7172848185e5675a7b79e3d28aa0f (diff)
downloadmailman-d1a9979ecf35d05ed115651dcc6b8680af08b954.tar.gz
mailman-d1a9979ecf35d05ed115651dcc6b8680af08b954.tar.zst
mailman-d1a9979ecf35d05ed115651dcc6b8680af08b954.zip
Diffstat (limited to 'src/mailman/bin/mailman.py')
-rw-r--r--src/mailman/bin/mailman.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/mailman/bin/mailman.py b/src/mailman/bin/mailman.py
index 2a230b49f..94de65255 100644
--- a/src/mailman/bin/mailman.py
+++ b/src/mailman/bin/mailman.py
@@ -17,7 +17,7 @@
"""The 'mailman' command dispatcher."""
-from __future__ import absolute_import, unicode_literals
+from __future__ import absolute_import, print_function, unicode_literals
__metaclass__ = type
__all__ = [
@@ -94,7 +94,9 @@ def main():
# Mailman system, and in particular, we must read the configuration file.
config_file = os.getenv('MAILMAN_CONFIG_FILE')
if config_file is None:
- config_file = args.config
+ if args.config is not None:
+ config_file = os.path.abspath(os.path.expanduser(args.config))
+
initialize(config_file)
# Perform the subcommand option.
args.func(args)