diff options
Diffstat (limited to 'PC/testpy.py')
-rw-r--r-- | PC/testpy.py | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/PC/testpy.py b/PC/testpy.py index 709f35c..78ad63c 100644 --- a/PC/testpy.py +++ b/PC/testpy.py @@ -7,17 +7,19 @@ import sys try: import os except: - print("""Could not import the standard "os" module. - Please check your PYTHONPATH environment variable.""") + print """Could not import the standard "os" module. + Please check your PYTHONPATH environment variable.""" sys.exit(1) try: import symbol except: - print("""Could not import the standard "symbol" module. If this is - a PC, you should add the dos_8x3 directory to your PYTHONPATH.""") + print """Could not import the standard "symbol" module. If this is + a PC, you should add the dos_8x3 directory to your PYTHONPATH.""" sys.exit(1) +import os + for dir in sys.path: file = os.path.join(dir, "os.py") if os.path.isfile(file): @@ -26,5 +28,5 @@ for dir in sys.path: # Add the "test" directory to PYTHONPATH. sys.path = sys.path + [test] -import libregrtest # Standard Python tester. -libregrtest.main() +import regrtest # Standard Python tester. +regrtest.main() |