Added fix for TeX includes with same name as subdirs.
[scons.git] / test / YACC / live.py
index 88cbafbe5c60cbd16d359cb8865bb92cd9f0d303..28e2186dcc548f4ac1e38ec3fe9513055cf3e38e 100644 (file)
@@ -28,8 +28,6 @@ __revision__ = "__FILE__ __REVISION__ __DATE__ __DEVELOPER__"
 Test YACC and YACCFLAGS with a live yacc compiler.
 """
 
-import string
-
 import TestSCons
 
 _exe = TestSCons._exe
@@ -44,11 +42,10 @@ if not yacc:
 
 test.write("wrapper.py",
 """import os
-import string
 import sys
 open('%s', 'wb').write("wrapper.py\\n")
-os.system(string.join(sys.argv[1:], " "))
-""" % string.replace(test.workpath('wrapper.out'), '\\', '\\\\'))
+os.system(" ".join(sys.argv[1:]))
+""" % test.workpath('wrapper.out').replace('\\', '\\\\'))
 
 test.write('SConstruct', """
 foo = Environment(YACCFLAGS='-d')
@@ -172,3 +169,9 @@ test.up_to_date(arguments = '.')
 
 
 test.pass_test()
+
+# Local Variables:
+# tab-width:4
+# indent-tabs-mode:nil
+# End:
+# vim: set expandtab tabstop=4 shiftwidth=4: