summaryrefslogtreecommitdiffstats
path: root/test/RANLIBFLAGS.py
diff options
context:
space:
mode:
authorSteven Knight <knight@baldmt.com>2002-03-07 23:18:02 (GMT)
committerSteven Knight <knight@baldmt.com>2002-03-07 23:18:02 (GMT)
commit232ea1169c24b803d0c90e3cdb277e356b2eb087 (patch)
treef279952eadcc1ee93bfcb87e2e7f25bcd149151d /test/RANLIBFLAGS.py
parent71a1c2b9715bd3b41f85f28df31c424de4534679 (diff)
downloadSCons-232ea1169c24b803d0c90e3cdb277e356b2eb087.zip
SCons-232ea1169c24b803d0c90e3cdb277e356b2eb087.tar.gz
SCons-232ea1169c24b803d0c90e3cdb277e356b2eb087.tar.bz2
Fix RANLIB tests for systems that don't have ranlib. (Charles Crain.)
Diffstat (limited to 'test/RANLIBFLAGS.py')
-rw-r--r--test/RANLIBFLAGS.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/RANLIBFLAGS.py b/test/RANLIBFLAGS.py
index 1855af2..5549e94 100644
--- a/test/RANLIBFLAGS.py
+++ b/test/RANLIBFLAGS.py
@@ -36,8 +36,17 @@ 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()
+test.no_result(not ranlib)
+
test.write("wrapper.py",
"""import os
import string