importsys# This is a test module for Python. It looks in the standard# places for various *.py files. If these are moved, you must# change this module too.try:importstringexcept:print"""Could not import the standard "string" module.Please check your PYTHONPATH environment variable."""sys.exit(1)try:importregex_syntaxexcept:print"""Could not import the standard "regex_syntax" module. If this isa PC, you should add the dos_8x3 directory to your PYTHONPATH."""sys.exit(1)importosfordirinsys.path:file=os.path.join(dir,"string.py")ifos.path.isfile(file):test=os.path.join(dir,"test")ifos.path.isdir(test):# Add the "test" directory to PYTHONPATH.sys.path=sys.path+[test]importregrtest# Standard Python tester.regrtest.main()