| 1 |
import sys |
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
try: |
| 8 |
import os |
| 9 |
except: |
| 10 |
print """Could not import the standard "os" module. |
| 11 |
Please check your PYTHONPATH environment variable.""" |
| 12 |
sys.exit(1) |
| 13 |
|
| 14 |
try: |
| 15 |
import symbol |
| 16 |
except: |
| 17 |
print """Could not import the standard "symbol" module. If this is |
| 18 |
a PC, you should add the dos_8x3 directory to your PYTHONPATH.""" |
| 19 |
sys.exit(1) |
| 20 |
|
| 21 |
import os |
| 22 |
|
| 23 |
for dir in sys.path: |
| 24 |
file = os.path.join(dir, "os.py") |
| 25 |
if os.path.isfile(file): |
| 26 |
test = os.path.join(dir, "test") |
| 27 |
if os.path.isdir(test): |
| 28 |
|
| 29 |
sys.path = sys.path + [test] |
| 30 |
|
| 31 |
import regrtest |
| 32 |
regrtest.main() |