* wrap/python/cgi/ltl2tgba.in (render_dot): Render .png directly
with dot, without using convert. * wrap/python/cgi/README: Do not mention convert.
This commit is contained in:
parent
47489236dc
commit
550e7acdb2
3 changed files with 7 additions and 6 deletions
|
|
@ -40,5 +40,4 @@ You have to install the script yourself if you want to test it.
|
|||
ltl2tgba purges old files (>10min) from this directory
|
||||
each time it runs.
|
||||
|
||||
4) `dot' from the GraphViz package, and `convert' from
|
||||
the ImageMagick package should be in the PATH.
|
||||
4) `dot', from the GraphViz package, should be in the PATH.
|
||||
|
|
|
|||
|
|
@ -72,10 +72,8 @@ def print_stats(automaton):
|
|||
sys.stdout.flush()
|
||||
|
||||
def render_dot(basename):
|
||||
os.spawnlp(os.P_WAIT, 'dot', 'dot', '-Tgif', '-Gsize=14,14', '-o',
|
||||
basename + '.gif', basename + '.dot')
|
||||
os.spawnlp(os.P_WAIT, 'convert', 'convert',
|
||||
basename + '.gif', basename + '.png')
|
||||
os.spawnlp(os.P_WAIT, 'dot', 'dot', '-Tpng', '-Gsize=14,14', '-o',
|
||||
basename + '.png', basename + '.dot')
|
||||
print '<img src="' + basename + '.png">'
|
||||
|
||||
def render_automaton(basename, automata):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue