From 03746ddd239e39255fabb84c08e649325572b864 Mon Sep 17 00:00:00 2001 From: bwarsaw Date: Mon, 1 Apr 2002 14:51:00 +0000 Subject: Make convert.py and fix_url.py full-fledged scripts. They're still intended to be run under bin/withlist, so when run standalone, they print their module documentation (usage information). --- bin/fix_url.py | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'bin/fix_url.py') diff --git a/bin/fix_url.py b/bin/fix_url.py index b0dda1f5b..3806902aa 100644 --- a/bin/fix_url.py +++ b/bin/fix_url.py @@ -1,3 +1,5 @@ +#! @PYTHON@ +# # Copyright (C) 2001,2002 by the Free Software Foundation, Inc. # # This program is free software; you can redistribute it and/or @@ -21,6 +23,7 @@ This script is intended to be run as a bin/withlist script, i.e. % bin/withlist -l -r fix_url """ +import paths from Mailman import mm_cfg from Mailman.i18n import _ @@ -30,3 +33,8 @@ def fix_url(mlist): mlist.web_page_url = mm_cfg.DEFAULT_URL_PATTERN % mm_cfg.DEFAULT_URL_HOST print _('Saving list') mlist.Save() + + + +if __name__ == '__main__': + print _(__doc__.replace('%', '%%')) -- cgit v1.2.3-70-g09d2