Update of /cvsroot/webware/Webware/MiscUtils/Testing
In directory usw-pr-cvs1:/tmp/cvs-serv7374
Added Files:
FixPath.py
Log Message:
each test case and benchmark does this, so now it's in one file
--- NEW FILE: FixPath.py ---
"""
Fixes the Python path to start with our parent directory.
Merely importing this module fixes the path.
Doing this _guarantees_ that we're testing our local classes and not
some other installation. For those of us who have multiple instances
of Webware present, this is critical. For those who do not, this
doesn't hurt anything.
"""
import os, sys
sys.path.insert(0, os.path.abspath(os.pardir))
|