summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbwarsaw1998-05-26 16:23:14 +0000
committerbwarsaw1998-05-26 16:23:14 +0000
commit93161ccb6ed1076e38a9dce7e3965d9af30fb390 (patch)
tree43099f6893e51e4d975568b2f18636ddab924aea
parentab400ade813cac5d85543ad40e77358221102c73 (diff)
downloadmailman-93161ccb6ed1076e38a9dce7e3965d9af30fb390.tar.gz
mailman-93161ccb6ed1076e38a9dce7e3965d9af30fb390.tar.zst
mailman-93161ccb6ed1076e38a9dce7e3965d9af30fb390.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
-rwxr-xr-xbin/mmsitepass10
1 files changed, 3 insertions, 7 deletions
diff --git a/bin/mmsitepass b/bin/mmsitepass
index 72f5f72ff..30b71773b 100755
--- a/bin/mmsitepass
+++ b/bin/mmsitepass
@@ -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,13 +22,8 @@ The site password can be used in most if not all places that the list
administrator's password can be used, which in turn can be used in most
places that a list users password can be used."""
-__version__ = "$Revision: 549 $"
-# $Source$
-
import sys
-
-sys.path.append('/home/mailman/mailman/modules')
-
+import paths
import maillist
def main(argv):