From 95dad6f5c22988cbba2b582fe13d7f6f66fd01c6 Mon Sep 17 00:00:00 2001 From: bwarsaw Date: Tue, 12 Feb 2002 04:43:36 +0000 Subject: run_main(): Because the site-packages path hacking no longer happens in Defaults.py, we need to arrange for this script to import paths.py to pick up the correct site-packages prefixed sys.path. Because we do this, we can delete the sys.path.insert() call, which was redundant. --- scripts/driver | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'scripts') diff --git a/scripts/driver b/scripts/driver index 7920778cc..0b6480c7f 100644 --- a/scripts/driver +++ b/scripts/driver @@ -1,6 +1,6 @@ # -*- python -*- -# Copyright (C) 1998,1999,2000,2001 by the Free Software Foundation, Inc. +# Copyright (C) 1998,1999,2000,2001,2002 by the Free Software Foundation, Inc. # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License @@ -58,11 +58,7 @@ def run_main(): # *something* meaningful. logger = None try: - # Insert the relative path to the parent of the Mailman package - # directory, so we can pick up the Utils module. - import os - # sys gets imported at module level below. - sys.path.insert(0, os.pardir) + import paths # Map stderr to a logger, if possible. from Mailman.Logging.StampedLogger import StampedLogger logger = StampedLogger('error', -- cgit v1.3.1