diff options
| author | bwarsaw | 1998-05-26 18:18:59 +0000 |
|---|---|---|
| committer | bwarsaw | 1998-05-26 18:18:59 +0000 |
| commit | 93a1a5fbd319867c3134e6bf2ee0840e2437514e (patch) | |
| tree | 3745fae86f40006d2a50dbfd3c969c889031014c /cron | |
| parent | 7c6c228c981c9a8c078304a1addbc0b6ee7361b3 (diff) | |
| download | mailman-93a1a5fbd319867c3134e6bf2ee0840e2437514e.tar.gz mailman-93a1a5fbd319867c3134e6bf2ee0840e2437514e.tar.zst mailman-93a1a5fbd319867c3134e6bf2ee0840e2437514e.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-x | cron/upvolumes_monthly | 7 | ||||
| -rwxr-xr-x | cron/upvolumes_yearly | 9 |
2 files changed, 7 insertions, 9 deletions
diff --git a/cron/upvolumes_monthly b/cron/upvolumes_monthly index 22b595602..6a9f58a96 100755 --- a/cron/upvolumes_monthly +++ b/cron/upvolumes_monthly @@ -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 @@ -23,9 +24,7 @@ # The digest number. import sys, os - -sys.path.append('/home/mailman/mailman/modules') - +import paths import maillist, mm_cfg, mm_utils diff --git a/cron/upvolumes_yearly b/cron/upvolumes_yearly index a2fe7c70e..cca4a4d33 100755 --- a/cron/upvolumes_yearly +++ b/cron/upvolumes_yearly @@ -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 @@ -14,7 +15,7 @@ # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. -# + # NOTE: This is being deprecated since mailman has been shifted over to an # external archiver (ie, andrew kuchling's latest version of pipermail.) # @@ -23,9 +24,7 @@ # The digest number to 0. import sys, os - -sys.path.append('/home/mailman/mailman/modules') - +import paths import maillist, mm_cfg, mm_utils |
