diff options
-rw-r--r-- | test/DVIPS/DVIPSFLAGS.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/test/DVIPS/DVIPSFLAGS.py b/test/DVIPS/DVIPSFLAGS.py index 814c8aa..b6625d7 100644 --- a/test/DVIPS/DVIPSFLAGS.py +++ b/test/DVIPS/DVIPSFLAGS.py @@ -125,10 +125,11 @@ dvips = test.where_is('dvips') if dvips: - test.write("wrapper.py", """import os + test.write("wrapper.py", """ +import os import sys cmd = " ".join(sys.argv[1:]) -open('%s', 'ab').write("%%s\\n" %% cmd) +open('%s', 'a').write("%%s\\n" %% cmd) os.system(cmd) """ % test.workpath('wrapper.out').replace('\\', '\\\\')) |