summaryrefslogtreecommitdiff
path: root/src/mailman/bin/mailman.py
diff options
context:
space:
mode:
authorAndrea Crotti2012-03-13 05:16:59 +0000
committerAndrea Crotti2012-03-13 05:16:59 +0000
commit59084018c332a2979f65531007c58b72745ef617 (patch)
tree1bc15e7f7dd762e7dc6dc99bd45400df336166fb /src/mailman/bin/mailman.py
parentcefcce69620c123336c2e0cf87252435dc8e1f5f (diff)
downloadmailman-59084018c332a2979f65531007c58b72745ef617.tar.gz
mailman-59084018c332a2979f65531007c58b72745ef617.tar.zst
mailman-59084018c332a2979f65531007c58b72745ef617.zip
Diffstat (limited to 'src/mailman/bin/mailman.py')
-rw-r--r--src/mailman/bin/mailman.py10
1 files changed, 1 insertions, 9 deletions
diff --git a/src/mailman/bin/mailman.py b/src/mailman/bin/mailman.py
index b9d792d4d..2cb6e9012 100644
--- a/src/mailman/bin/mailman.py
+++ b/src/mailman/bin/mailman.py
@@ -28,8 +28,6 @@ __all__ = [
import os
import argparse
-from os.path import abspath, expanduser
-
from zope.interface.verify import verifyObject
from mailman.app.finder import find_components
@@ -39,12 +37,6 @@ from mailman.interfaces.command import ICLISubCommand
from mailman.version import MAILMAN_VERSION_FULL
-def _absolute_path(path):
- """Return the absolute after the user expansion.
- """
- return abspath(expanduser(path))
-
-
def main():
"""bin/mailman"""
@@ -103,7 +95,7 @@ def main():
config_file = os.getenv('MAILMAN_CONFIG_FILE')
if config_file is None:
if args.config is not None:
- config_file = _absolute_path(args.config)
+ config_file = os.path.abspath(os.path.expanduser(args.config))
initialize(config_file)
# Perform the subcommand option.