diff options
Diffstat (limited to 'test/LEX.py')
| -rw-r--r-- | test/LEX.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/LEX.py b/test/LEX.py index 9bf37d7..38bee99 100644 --- a/test/LEX.py +++ b/test/LEX.py @@ -25,6 +25,7 @@ __revision__ = "__FILE__ __REVISION__ __DATE__ __DEVELOPER__" import os +import os.path import string import sys import TestSCons @@ -36,8 +37,17 @@ if sys.platform == 'win32': else: _exe = '' +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 + test = TestSCons.TestSCons() +test.no_result(not lex) + test.write("wrapper.py", """import os import string |
