diff options
author | Steven Knight <knight@baldmt.com> | 2002-05-07 21:52:15 (GMT) |
---|---|---|
committer | Steven Knight <knight@baldmt.com> | 2002-05-07 21:52:15 (GMT) |
commit | e9512cbcf8dc872b474f9e7990b60bb9db1924f3 (patch) | |
tree | 0ba2d9c0f3368e88cd306a6f988657979dd1cccf /test/YACCFLAGS.py | |
parent | a2ceacbe77db1b308f26454477ae3b1f1139eac8 (diff) | |
download | SCons-e9512cbcf8dc872b474f9e7990b60bb9db1924f3.zip SCons-e9512cbcf8dc872b474f9e7990b60bb9db1924f3.tar.gz SCons-e9512cbcf8dc872b474f9e7990b60bb9db1924f3.tar.bz2 |
Add a better PATH search to the tests.
Diffstat (limited to 'test/YACCFLAGS.py')
-rw-r--r-- | test/YACCFLAGS.py | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/test/YACCFLAGS.py b/test/YACCFLAGS.py index 10c29ca..288696b 100644 --- a/test/YACCFLAGS.py +++ b/test/YACCFLAGS.py @@ -80,12 +80,7 @@ test.run(program = test.workpath('aaa' + _exe), stdout = " -x\naaa.y\n") -yacc = None -for dir in string.split(os.environ['PATH'], os.pathsep): - y = os.path.join(dir, 'yacc' + _exe) - if os.path.exists(y): - yacc = y - break +yacc = test.where_is('yacc') if yacc: |