__revision__ = "__FILE__ __REVISION__ __DATE__ __DEVELOPER__"
import os
+import os.path
import string
import sys
import TestSCons
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
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