diff options
author | Guido van Rossum <guido@python.org> | 1997-10-06 20:19:59 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1997-10-06 20:19:59 (GMT) |
commit | a11ccccd249c201df0224c84bbaacdb31496aa5b (patch) | |
tree | d5a3ed51586cbe829775209fa49f469935332782 /Lib/dos-8x3/test_rgb.py | |
parent | d57548023fa61918e545c0c808625df4f43e6ad4 (diff) | |
download | cpython-a11ccccd249c201df0224c84bbaacdb31496aa5b.zip cpython-a11ccccd249c201df0224c84bbaacdb31496aa5b.tar.gz cpython-a11ccccd249c201df0224c84bbaacdb31496aa5b.tar.bz2 |
The usual (and some new modules).
Diffstat (limited to 'Lib/dos-8x3/test_rgb.py')
-rwxr-xr-x | Lib/dos-8x3/test_rgb.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/Lib/dos-8x3/test_rgb.py b/Lib/dos-8x3/test_rgb.py index f0f772c..c5b7c83 100755 --- a/Lib/dos-8x3/test_rgb.py +++ b/Lib/dos-8x3/test_rgb.py @@ -11,7 +11,12 @@ print 'RGBimg test suite:' def findfile(file): if os.path.isabs(file): return file import sys - for dn in sys.path: + path = sys.path + try: + path = [os.path.dirname(__file__)] + path + except NameError: + pass + for dn in path: fn = os.path.join(dn, file) if os.path.exists(fn): return fn return file |