From c2e0b60998f6a7ce2225750783214383d2fe4f8d Mon Sep 17 00:00:00 2001 From: Yoshinori Okuji <yo@nexedi.com> Date: Wed, 24 Mar 2004 17:23:27 +0000 Subject: [PATCH] Upgraded from 0.8.6. git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@615 20353a03-c40f-0410-a6d1-a30d3c3de9de --- product/ERP5Type/tests/framework.py | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/product/ERP5Type/tests/framework.py b/product/ERP5Type/tests/framework.py index c36e5abb81..7ccab93b10 100755 --- a/product/ERP5Type/tests/framework.py +++ b/product/ERP5Type/tests/framework.py @@ -37,7 +37,7 @@ # ############################################################################## -__version__ = '0.2.1' +__version__ = '0.2.3' # Save start state # @@ -62,12 +62,7 @@ if not sys.modules.has_key('Testing'): while d: if os.path.isdir(os.path.join(p, 'Testing')): zope_home = os.path.dirname(os.path.dirname(p)) - # Do not add the parent directory into the path list. - # Why did the author put it? -yo - if 0: - sys.path[:1] = [p0, os.pardir, p, zope_home] - else: - sys.path[:1] = [p0, p, zope_home] + sys.path[:1] = [p0, p, zope_home] break p, d = s and ('','') or os.path.split(p) else: @@ -104,9 +99,9 @@ if 1: # Create a new scope print 'Unable to locate %s.' % ztc_common sys.exit(1) - # Debug # print 'SOFTWARE_HOME: %s' % os.environ.get('SOFTWARE_HOME', 'Not set') print 'INSTANCE_HOME: %s' % os.environ.get('INSTANCE_HOME', 'Not set') +sys.stdout.flush() -- 2.30.9