summaryrefslogtreecommitdiff
path: root/scripts/owner
diff options
context:
space:
mode:
authorbwarsaw1998-05-26 18:46:11 +0000
committerbwarsaw1998-05-26 18:46:11 +0000
commitf20768771d749836f1b5b285a22fdcb23b0c2054 (patch)
tree729175cd5ed4f8f007d42b617a30f9faf0e0eafe /scripts/owner
parent98996c238cf50bc923b1de92c65de965e3e0c00f (diff)
downloadmailman-f20768771d749836f1b5b285a22fdcb23b0c2054.tar.gz
mailman-f20768771d749836f1b5b285a22fdcb23b0c2054.tar.zst
mailman-f20768771d749836f1b5b285a22fdcb23b0c2054.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 'scripts/owner')
-rwxr-xr-xscripts/owner8
1 files changed, 3 insertions, 5 deletions
diff --git a/scripts/owner b/scripts/owner
index 914e3f6fc..51b724e35 100755
--- a/scripts/owner
+++ b/scripts/owner
@@ -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
@@ -22,12 +23,9 @@ This script gets called by the wrapper.
Stdin is the mail message, and argv[1] is the name of the mailing list
whose owner(s) to send mail to."""
-__version__ = "$Revision: 547 $"
-
import sys
-sys.path.append('/home/mailman/mailman/modules')
-
+import paths
import maillist, mm_message, mm_utils
try: