- Fixed scytherview script.

This commit is contained in:
ccremers 2006-12-13 09:40:53 +00:00
parent 10d337d99b
commit acafc18926

View File

@ -33,7 +33,9 @@ def generateTemp(extension='tmp'):
def scyther_to_dotfile():
""" Run Scyther, return dotfile name """
scythername = "scyther-linux"
mydir = os.path.dirname(__file__)
scythername = os.path.join(mydir, "../Scyther/Bin/scyther-linux")
args = " ".join(sys.argv[1:])
tmpdotfile = generateTemp('dot')
@ -84,4 +86,9 @@ def main():
else:
print "No graphs generated."
main()
if __name__ == '__main__':
if len(sys.argv) > 1:
main()
else:
print "Please provide the name of an input file."