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/TEX.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/TEX.py')
| -rw-r--r-- | test/TEX.py | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/test/TEX.py b/test/TEX.py index 9b442c9..bcdd62e 100644 --- a/test/TEX.py +++ b/test/TEX.py @@ -32,11 +32,6 @@ import TestSCons python = sys.executable -if sys.platform == 'win32': - _exe = '.exe' -else: - _exe = '' - test = TestSCons.TestSCons() @@ -68,12 +63,7 @@ test.fail_test(test.read('test.dvi') != "This is a test.\n") -tex = None -for dir in string.split(os.environ['PATH'], os.pathsep): - t = os.path.join(dir, 'tex' + _exe) - if os.path.exists(t): - tex = t - break +tex = test.where_is('tex') if tex: |
