summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbwarsaw1998-05-26 16:32:15 +0000
committerbwarsaw1998-05-26 16:32:15 +0000
commitcfe4885e803e961013c7d4e254a0e03d39d47bcb (patch)
treea310c61cad339a7a3cf62c598c09c8a0410da28f
parentc5d4da0a317431c6aa18ab9c58ccc445b6bec1f9 (diff)
downloadmailman-cfe4885e803e961013c7d4e254a0e03d39d47bcb.tar.gz
mailman-cfe4885e803e961013c7d4e254a0e03d39d47bcb.tar.zst
mailman-cfe4885e803e961013c7d4e254a0e03d39d47bcb.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/populate_new_list9
1 files changed, 3 insertions, 6 deletions
diff --git a/bin/populate_new_list b/bin/populate_new_list
index 7aaae7746..f15560f5e 100755
--- a/bin/populate_new_list
+++ b/bin/populate_new_list
@@ -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
@@ -24,13 +25,9 @@
The email address lists must not have comments or other fancy formatting -
just email addrs, one per line."""
-__version__ = "$Revision: 549 $"
-# $Source$
import sys, os, crypt, string
-
-sys.path.append('/home/mailman/mailman/modules')
-
+import paths
import maillist, mm_utils, mm_message, mm_cfg, mm_err
def GetRandomPassword():