summaryrefslogtreecommitdiffstats
path: root/test/TEXFLAGS.py
diff options
context:
space:
mode:
authorSteven Knight <knight@baldmt.com>2002-05-07 21:52:15 (GMT)
committerSteven Knight <knight@baldmt.com>2002-05-07 21:52:15 (GMT)
commite9512cbcf8dc872b474f9e7990b60bb9db1924f3 (patch)
tree0ba2d9c0f3368e88cd306a6f988657979dd1cccf /test/TEXFLAGS.py
parenta2ceacbe77db1b308f26454477ae3b1f1139eac8 (diff)
downloadSCons-e9512cbcf8dc872b474f9e7990b60bb9db1924f3.zip
SCons-e9512cbcf8dc872b474f9e7990b60bb9db1924f3.tar.gz
SCons-e9512cbcf8dc872b474f9e7990b60bb9db1924f3.tar.bz2
Add a better PATH search to the tests.
Diffstat (limited to 'test/TEXFLAGS.py')
-rw-r--r--test/TEXFLAGS.py12
1 files changed, 1 insertions, 11 deletions
diff --git a/test/TEXFLAGS.py b/test/TEXFLAGS.py
index 4cc08d3..1f7121f 100644
--- a/test/TEXFLAGS.py
+++ b/test/TEXFLAGS.py
@@ -32,11 +32,6 @@ import TestSCons
python = sys.executable
-if sys.platform == 'win32':
- _exe = '.exe'
-else:
- _exe = ''
-
test = TestSCons.TestSCons()
@@ -74,12 +69,7 @@ test.fail_test(test.read('test.dvi') != " -x\nThis 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: