- Added python wrapper around the command-line tool.
This commit is contained in:
parent
166f618cb9
commit
e6ec1ecd99
38
gui/scyther.py
Executable file
38
gui/scyther.py
Executable file
@ -0,0 +1,38 @@
|
||||
#!/usr/bin/python
|
||||
#
|
||||
# Scyther interface
|
||||
#
|
||||
|
||||
#---------------------------------------------------------------------------
|
||||
|
||||
""" Import externals """
|
||||
import sys
|
||||
|
||||
#---------------------------------------------------------------------------
|
||||
|
||||
""" Import scyther components """
|
||||
import Scyther.Scyther as Scyther
|
||||
|
||||
#---------------------------------------------------------------------------
|
||||
|
||||
def usage():
|
||||
x = Scyther.Scyther()
|
||||
x.xml = False
|
||||
x.options = "--help"
|
||||
x.verify()
|
||||
return x
|
||||
|
||||
def simpleRun(args):
|
||||
x = Scyther.Scyther()
|
||||
x.options = args
|
||||
x.verify()
|
||||
return x
|
||||
|
||||
if __name__ == '__main__':
|
||||
pars = sys.argv[1:]
|
||||
if len(pars) == 0:
|
||||
print usage()
|
||||
else:
|
||||
print simpleRun(" ".join(pars))
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user