##############################################################################
#
# Copyright (c) 2001 Zope Corporation and Contributors. All Rights Reserved.
# 
# This software is subject to the provisions of the Zope Public License,
# Version 2.0 (ZPL).  A copy of the ZPL should accompany this distribution.
# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
# FOR A PARTICULAR PURPOSE
# 
##############################################################################
"""
Set up testing environment

$Id: __init__.py,v 1.5 2002/01/11 17:07:32 shane Exp $
"""
import os

def pdir(path):
    return os.path.split(path)[0]

# Set the INSTANCE_HOME to the Testing package directory
os.environ['INSTANCE_HOME'] = INSTANCE_HOME = pdir(__file__)

# Set the SOFTWARE_HOME to the directory containing the Testing package
os.environ['SOFTWARE_HOME'] = SOFTWARE_HOME = pdir(INSTANCE_HOME)

# Note: we don't set os.environ['ZEO_CLIENT'] anymore because we
# really do need all the products to be initialized.  Some tests
# use the product registry.


