2006-03-01 02:28:58 -04:00
|
|
|
import sys
|
|
|
|
|
|
|
|
# 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:
|
2006-04-21 07:40:58 -03:00
|
|
|
import os
|
2006-03-01 02:28:58 -04:00
|
|
|
except:
|
2007-08-30 15:50:25 -03:00
|
|
|
print("""Could not import the standard "os" module.
|
|
|
|
Please check your PYTHONPATH environment variable.""")
|
2006-03-01 02:28:58 -04:00
|
|
|
sys.exit(1)
|
|
|
|
|
|
|
|
try:
|
2006-04-21 07:40:58 -03:00
|
|
|
import symbol
|
2006-03-01 02:28:58 -04:00
|
|
|
except:
|
2007-08-30 15:50:25 -03:00
|
|
|
print("""Could not import the standard "symbol" module. If this is
|
|
|
|
a PC, you should add the dos_8x3 directory to your PYTHONPATH.""")
|
2006-03-01 02:28:58 -04:00
|
|
|
sys.exit(1)
|
|
|
|
|
|
|
|
for dir in sys.path:
|
2006-04-21 07:40:58 -03:00
|
|
|
file = os.path.join(dir, "os.py")
|
2006-03-01 02:28:58 -04:00
|
|
|
if os.path.isfile(file):
|
|
|
|
test = os.path.join(dir, "test")
|
|
|
|
if os.path.isdir(test):
|
|
|
|
# Add the "test" directory to PYTHONPATH.
|
|
|
|
sys.path = sys.path + [test]
|
|
|
|
|
|
|
|
import regrtest # Standard Python tester.
|
|
|
|
regrtest.main()
|