summaryrefslogtreecommitdiffstats
path: root/Lib/dos-8x3/test_ima.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1997-10-06 20:19:59 (GMT)
committerGuido van Rossum <guido@python.org>1997-10-06 20:19:59 (GMT)
commita11ccccd249c201df0224c84bbaacdb31496aa5b (patch)
treed5a3ed51586cbe829775209fa49f469935332782 /Lib/dos-8x3/test_ima.py
parentd57548023fa61918e545c0c808625df4f43e6ad4 (diff)
downloadcpython-a11ccccd249c201df0224c84bbaacdb31496aa5b.zip
cpython-a11ccccd249c201df0224c84bbaacdb31496aa5b.tar.gz
cpython-a11ccccd249c201df0224c84bbaacdb31496aa5b.tar.bz2
The usual (and some new modules).
Diffstat (limited to 'Lib/dos-8x3/test_ima.py')
-rw-r--r--Lib/dos-8x3/test_ima.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/Lib/dos-8x3/test_ima.py b/Lib/dos-8x3/test_ima.py
index 77281ab..89b111c 100644
--- a/Lib/dos-8x3/test_ima.py
+++ b/Lib/dos-8x3/test_ima.py
@@ -155,7 +155,12 @@ def get_qualified_path(name):
""" return a more qualified path to name"""
import sys
import os
- for dir in sys.path:
+ path = sys.path
+ try:
+ path = [os.path.dirname(__file__)] + path
+ except NameError:
+ pass
+ for dir in path:
fullname = os.path.join(dir, name)
if os.path.exists(fullname):
return fullname