Commit 550e7acd authored by Alexandre Duret-Lutz's avatar Alexandre Duret-Lutz
Browse files

* wrap/python/cgi/ltl2tgba.in (render_dot): Render .png directly

with dot, without using convert.
* wrap/python/cgi/README: Do not mention convert.
parent 47489236
2004-02-02 Alexandre Duret-Lutz <adl@gnu.org>
* wrap/python/cgi/ltl2tgba.in (render_dot): Render .png directly
with dot, without using convert.
* wrap/python/cgi/README: Do not mention convert.
* wrap/python/cgi/ltl2tgba.in (render_dot, render_automaton)
(render_bdd): New functions, extracted from the rest of the code.
......
......@@ -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):
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment