From cfe4885e803e961013c7d4e254a0e03d39d47bcb Mon Sep 17 00:00:00 2001 From: bwarsaw Date: Tue, 26 May 1998 16:32:15 +0000 Subject: 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 --- bin/populate_new_list | 9 +++------ 1 file 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(): -- cgit v1.3.1