summaryrefslogtreecommitdiff
path: root/cgi/handle_opts
diff options
context:
space:
mode:
authorbwarsaw1998-05-26 17:59:50 +0000
committerbwarsaw1998-05-26 17:59:50 +0000
commit081a92c1b28f1ad2ff3a7894369a682da638ebda (patch)
tree6a54507323ab097bffab2fb0573c992e1c732911 /cgi/handle_opts
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/handle_opts')
-rwxr-xr-xcgi/handle_opts8
1 files changed, 3 insertions, 5 deletions
diff --git a/cgi/handle_opts b/cgi/handle_opts
index cdd92e96f..f8fcd1da1 100755
--- a/cgi/handle_opts
+++ b/cgi/handle_opts
@@ -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
@@ -17,12 +18,9 @@
"""Process input to user options form."""
-__version__ = "$Revision: 547 $"
-
import sys
-sys.path.append('/home/mailman/mailman/modules')
-
import os, cgi, string
+import paths # path hacking
import mm_utils, maillist, mm_err, mm_cfg, htmlformat
try: