summaryrefslogtreecommitdiffstats
path: root/test/LEXFLAGS.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/LEXFLAGS.py')
-rw-r--r--test/LEXFLAGS.py7
1 files changed, 1 insertions, 6 deletions
diff --git a/test/LEXFLAGS.py b/test/LEXFLAGS.py
index b415495..e807774 100644
--- a/test/LEXFLAGS.py
+++ b/test/LEXFLAGS.py
@@ -77,12 +77,7 @@ test.run(program = test.workpath('aaa' + _exe), stdout = " -x -t\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: