diff options
Diffstat (limited to 'test/Ghostscript/GS.py')
-rw-r--r-- | test/Ghostscript/GS.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/test/Ghostscript/GS.py b/test/Ghostscript/GS.py index c2e5dd7..2cae8b8 100644 --- a/test/Ghostscript/GS.py +++ b/test/Ghostscript/GS.py @@ -25,7 +25,6 @@ __revision__ = "__FILE__ __REVISION__ __DATE__ __DEVELOPER__" import os -import string import sys import TestSCons @@ -76,12 +75,11 @@ if gs: test.write("wrapper.py", """\ import os -import string import sys -cmd = string.join(sys.argv[1:], " ") +cmd = " ".join(sys.argv[1:]) open('%s', 'ab').write("%%s\\n" %% cmd) os.system(cmd) -""" % string.replace(test.workpath('wrapper.out'), '\\', '\\\\')) +""" % test.workpath('wrapper.out').replace('\\', '\\\\')) test.write('SConstruct', """\ import os |