summaryrefslogtreecommitdiffstats
path: root/test/RANLIB.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/RANLIB.py')
-rw-r--r--test/RANLIB.py9
1 files changed, 2 insertions, 7 deletions
diff --git a/test/RANLIB.py b/test/RANLIB.py
index 12ae212..14708e0 100644
--- a/test/RANLIB.py
+++ b/test/RANLIB.py
@@ -37,15 +37,10 @@ if sys.platform == 'win32':
else:
_exe = ''
-ranlib = None
-for dir in string.split(os.environ['PATH'], os.pathsep):
- r = os.path.join(dir, 'ranlib' + _exe)
- if os.path.exists(r):
- ranlib = r
- break
-
test = TestSCons.TestSCons()
+ranlib = test.where_is('ranlib')
+
test.no_result(not ranlib)
test.write("wrapper.py",