- Added 'append' switches and modified gui behaviour correspondingly.

This commit is contained in:
ccremers
2006-12-14 16:28:29 +00:00
parent 8c397d984e
commit 7786e0d65f
4 changed files with 52 additions and 4 deletions

View File

@@ -162,7 +162,7 @@ class Scyther(object):
self.cmd = "\"%s\"" % self.program
if self.xml:
self.cmd += " --dot-output --xml-output --plain"
self.cmd += " --errors=%s" % (errorfile.name)
self.cmd += " --append-errors=%s" % (errorfile.name)
self.cmd += " " + self.options
# Start the process, push input, get output
@@ -171,6 +171,7 @@ class Scyther(object):
stdin.write(self.spdl)
stdin.close()
output = stdout.read()
stdout.close()
# get errors
# filter out any non-errors (say maybe only claim etc) and count
@@ -184,7 +185,6 @@ class Scyther(object):
self.errorcount = len(self.errors)
# close
stdout.close()
errorfile.close()
if self.xml: