diff options
| author | bwarsaw | 1998-05-26 17:59:50 +0000 |
|---|---|---|
| committer | bwarsaw | 1998-05-26 17:59:50 +0000 |
| commit | 081a92c1b28f1ad2ff3a7894369a682da638ebda (patch) | |
| tree | 6a54507323ab097bffab2fb0573c992e1c732911 /cgi/handle_opts | |
| parent | e4987db65d570a40f78bd33ee46840e29785b35c (diff) | |
| download | mailman-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-x | cgi/handle_opts | 8 |
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: |
