diff options
| -rwxr-xr-x | cgi/roster | 7 | ||||
| -rwxr-xr-x | cgi/subscribe | 8 | ||||
| -rwxr-xr-x | cron/checkdbs | 9 | ||||
| -rwxr-xr-x | cron/mailpasswds | 9 | ||||
| -rwxr-xr-x | cron/senddigests | 9 |
5 files changed, 16 insertions, 26 deletions
diff --git a/cgi/roster b/cgi/roster index 54f3510f7..6272e4268 100755 --- a/cgi/roster +++ b/cgi/roster @@ -1,4 +1,5 @@ -#!/usr/local/bin/python +#! /usr/bin/env python +# # Copyright (C) 1998 by the Free Software Foundation, Inc. # # This program is free software; you can redistribute it and/or @@ -19,16 +20,14 @@ Takes listname in PATH_INFO.""" -__version__ = "$Revision: 547 $" # We don't need to lock in this script, because we're never going to change # data. import sys -sys.path.append('/home/mailman/mailman/modules') - import os, string import cgi +import paths # path hacking import mm_utils, maillist, htmlformat, mm_cfg, mm_err try: diff --git a/cgi/subscribe b/cgi/subscribe index d8dee86cc..6a6a050b9 100755 --- a/cgi/subscribe +++ b/cgi/subscribe @@ -1,4 +1,5 @@ -#!/usr/local/bin/python +#! /usr/bin/env python +# # Copyright (C) 1998 by the Free Software Foundation, Inc. # # This program is free software; you can redistribute it and/or @@ -17,13 +18,10 @@ """Process listinfo form submission, ie subscriptions or roster requests.""" -__version__ = "$Revision: 547 $" - import sys -sys.path.append('/home/mailman/mailman/modules') - import os, cgi, string from regsub import gsub +import paths # path hacking import mm_utils, maillist, mm_err, mm_message, mm_cfg, htmlformat try: diff --git a/cron/checkdbs b/cron/checkdbs index b65d8b599..e1d585bab 100755 --- a/cron/checkdbs +++ b/cron/checkdbs @@ -1,4 +1,5 @@ -#!/usr/local/bin/python +#! /usr/bin/env python +# # Copyright (C) 1998 by the Free Software Foundation, Inc. # # This program is free software; you can redistribute it and/or @@ -17,12 +18,8 @@ "Invoked by cron, checks for pending list requests and mails the admin if any." -__version__ = "$Revision: 547 $" - import sys, os - -sys.path.append('/home/mailman/mailman/modules') - +import paths import maillist, mm_cfg, mm_message, mm_utils def main(): diff --git a/cron/mailpasswds b/cron/mailpasswds index 5b1ef1e0f..018fe1866 100755 --- a/cron/mailpasswds +++ b/cron/mailpasswds @@ -1,4 +1,5 @@ -#!/usr/local/bin/python +#! /usr/bin/env python +# # Copyright (C) 1998 by the Free Software Foundation, Inc. # # This program is free software; you can redistribute it and/or @@ -21,14 +22,10 @@ We accumulate users and their passwords, and use the last list to send a single message to each user with their complete collection of passwords, rather than sending a single message for each password.""" -__version__ = "$Revision: 547 $" - # This puppy should probably do lots of logging. import sys, os, string - -sys.path.append('/home/mailman/mailman/modules') - +import paths import maillist, mm_cfg, mm_message, mm_utils diff --git a/cron/senddigests b/cron/senddigests index 2281b658c..8d93ffd6c 100755 --- a/cron/senddigests +++ b/cron/senddigests @@ -1,4 +1,5 @@ -#!/usr/local/bin/python +#! /usr/bin/env python +# # Copyright (C) 1998 by the Free Software Foundation, Inc. # # This program is free software; you can redistribute it and/or @@ -19,12 +20,10 @@ Typically it's invoked via cron.""" -__version__ = "$Revision: 547 $" +__version__ = "$Revision: 567 $" import sys, os - -sys.path.append('/home/mailman/mailman/modules') - +import paths import maillist, mm_cfg, mm_message, mm_utils def main(): |
