summaryrefslogtreecommitdiffstats
path: root/test/LEX.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/LEX.py')
-rw-r--r--test/LEX.py7
1 files changed, 1 insertions, 6 deletions
diff --git a/test/LEX.py b/test/LEX.py
index 59a887d..88c0a2d 100644
--- a/test/LEX.py
+++ b/test/LEX.py
@@ -74,12 +74,7 @@ test.run(program = test.workpath('aaa' + _exe), stdout = "mylex.py\naaa.l\n")
-lex = None
-for dir in string.split(os.environ['PATH'], os.pathsep):
- l = os.path.join(dir, 'lex' + _exe)
- if os.path.exists(l):
- lex = l
- break
+lex = test.where_is('lex')
if lex: