summaryrefslogtreecommitdiff
path: root/cgi/admin
diff options
context:
space:
mode:
authorbwarsaw1998-05-26 17:59:50 +0000
committerbwarsaw1998-05-26 17:59:50 +0000
commit081a92c1b28f1ad2ff3a7894369a682da638ebda (patch)
tree6a54507323ab097bffab2fb0573c992e1c732911 /cgi/admin
parente4987db65d570a40f78bd33ee46840e29785b35c (diff)
downloadmailman-081a92c1b28f1ad2ff3a7894369a682da638ebda.tar.gz
mailman-081a92c1b28f1ad2ff3a7894369a682da638ebda.tar.zst
mailman-081a92c1b28f1ad2ff3a7894369a682da638ebda.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 'cgi/admin')
-rwxr-xr-xcgi/admin7
1 files changed, 4 insertions, 3 deletions
diff --git a/cgi/admin b/cgi/admin
index f145c08a9..69f3d9b5d 100755
--- a/cgi/admin
+++ b/cgi/admin
@@ -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
@@ -20,11 +21,11 @@
To run stand-alone for debugging, set env var PATH_INFO to name of list
and, optionally, options category."""
-__version__ = "$Revision: 547 $"
+__version__ = "$Revision: 564 $"
import sys
-sys.path.append('/home/mailman/mailman/modules')
import os, cgi, string, crypt, types
+import paths # path hacking
import mm_utils, maillist, mm_cfg, mm_err
from htmlformat import *