summaryrefslogtreecommitdiffstats
path: root/Lib/dos-8x3/test_rgb.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/dos-8x3/test_rgb.py')
-rwxr-xr-xLib/dos-8x3/test_rgb.py7
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