summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbwarsaw1998-05-26 18:01:05 +0000
committerbwarsaw1998-05-26 18:01:05 +0000
commitc80e942eddb60094a87c07eabc901ad4c8af3598 (patch)
treee1b0f1829a373e79354edef32b35128df86a1724
parent081a92c1b28f1ad2ff3a7894369a682da638ebda (diff)
downloadmailman-c80e942eddb60094a87c07eabc901ad4c8af3598.tar.gz
mailman-c80e942eddb60094a87c07eabc901ad4c8af3598.tar.zst
mailman-c80e942eddb60094a87c07eabc901ad4c8af3598.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 (also, slight docstring mod)
-rwxr-xr-xcgi/options14
1 files changed, 7 insertions, 7 deletions
diff --git a/cgi/options b/cgi/options
index c6c2f3427..2464e8ade 100755
--- a/cgi/options
+++ b/cgi/options
@@ -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,19 +18,18 @@
"""Produce user options form, from list options.html template.
-Takes listname/userid in PATH_INFO, expecting an "obscured" userid.
-(Depending on the mm_utils.{O,Uno}bscureEmail utilities tolerance,
-will work fine with an unobscured ids as well.)"""
+Takes listname/userid in PATH_INFO, expecting an `obscured' userid. Depending
+on the mm_utils.{O,Uno}bscureEmail utilities tolerance, will work fine with an
+unobscured ids as well.
-__version__ = "$Revision: 547 $"
+"""
# We don't need to lock in this script, because we're never going to change
# data.
import sys
-sys.path.append('/home/mailman/mailman/modules')
-
import os, string
+import paths # path hacking
import mm_utils, maillist, htmlformat, mm_cfg
try: