summaryrefslogtreecommitdiff
path: root/cron
diff options
context:
space:
mode:
authorbwarsaw1998-05-26 18:15:00 +0000
committerbwarsaw1998-05-26 18:15:00 +0000
commitfa125c50fca4af7361282248f6b5abb6df1f760f (patch)
treed9243ba4cd036a372dc087f4574c7a6f3288d418 /cron
parent4d4705fac5cd8f4e8aa45265271c725364cc0a29 (diff)
downloadmailman-fa125c50fca4af7361282248f6b5abb6df1f760f.tar.gz
mailman-fa125c50fca4af7361282248f6b5abb6df1f760f.tar.zst
mailman-fa125c50fca4af7361282248f6b5abb6df1f760f.zip
1. Use the standard Python invocation #! line to get the interpreter
from $PATH 2. Do no direct sys.path munging in this file. Import the `paths' module, which is created during the configure process, and which performs all necessary path munging (and exports some useful variables too). 3. Remove RCS crud
Diffstat (limited to 'cron')
-rwxr-xr-xcron/checkdbs9
-rwxr-xr-xcron/mailpasswds9
-rwxr-xr-xcron/senddigests9
3 files changed, 10 insertions, 17 deletions
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():