* wrap/python/cgi/ltl2tgba.in: Use render_dot when

showing formula.
* wrap/python/cgi/README: Mention unique_id.
This commit is contained in:
Alexandre Duret-Lutz 2004-02-09 09:24:33 +00:00
parent 7069d5406b
commit faaa117e02
3 changed files with 10 additions and 7 deletions

View file

@ -1,4 +1,10 @@
2004-02-08 Alexandre Duret-Lutz <adl@gnu.org> 2004-02-09 Alexandre Duret-Lutz <adl@src.lip6.fr>
* wrap/python/cgi/ltl2tgba.in: Use render_dot when
showing formula.
* wrap/python/cgi/README: Mention unique_id.
2004-02-08 Alexandre Duret-Lutz <adl@src.lip6.fr>
This should help getting accurate statistics (on both the This should help getting accurate statistics (on both the
formula automaton and the synchronized product) from LBTT. formula automaton and the synchronized product) from LBTT.

View file

@ -41,3 +41,5 @@ You have to install the script yourself if you want to test it.
each time it runs. each time it runs.
4) `dot', from the GraphViz package, should be in the PATH. 4) `dot', from the GraphViz package, should be in the PATH.
5) Apache should have its unique_id module loaded.

View file

@ -329,12 +329,7 @@ if show_formula_gif:
outfile = spot.ofstream(imgprefix + '-f.dot') outfile = spot.ofstream(imgprefix + '-f.dot')
spot.dotty(outfile, f) spot.dotty(outfile, f)
del outfile del outfile
os.spawnlp(os.P_WAIT, 'dot', 'dot', '-Tgif', '-Gsize=14,14', '-o', render_dot(imgprefix + '-f')
imgprefix + '-f.gif', imgprefix + '-f.dot')
os.spawnlp(os.P_WAIT, 'convert', 'convert',
imgprefix + '-f.gif', imgprefix + '-f.png')
print '<img src="' + imgprefix + '-f.png">'
print '<H2>Automaton</H2>' print '<H2>Automaton</H2>'