* 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
|
|
@ -1,5 +1,9 @@
|
||||||
2004-02-02 Alexandre Duret-Lutz <adl@gnu.org>
|
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)
|
* wrap/python/cgi/ltl2tgba.in (render_dot, render_automaton)
|
||||||
(render_bdd): New functions, extracted from the rest of the code.
|
(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
|
ltl2tgba purges old files (>10min) from this directory
|
||||||
each time it runs.
|
each time it runs.
|
||||||
|
|
||||||
4) `dot' from the GraphViz package, and `convert' from
|
4) `dot', from the GraphViz package, should be in the PATH.
|
||||||
the ImageMagick package should be in the PATH.
|
|
||||||
|
|
|
||||||
|
|
@ -72,10 +72,8 @@ def print_stats(automaton):
|
||||||
sys.stdout.flush()
|
sys.stdout.flush()
|
||||||
|
|
||||||
def render_dot(basename):
|
def render_dot(basename):
|
||||||
os.spawnlp(os.P_WAIT, 'dot', 'dot', '-Tgif', '-Gsize=14,14', '-o',
|
os.spawnlp(os.P_WAIT, 'dot', 'dot', '-Tpng', '-Gsize=14,14', '-o',
|
||||||
basename + '.gif', basename + '.dot')
|
basename + '.png', basename + '.dot')
|
||||||
os.spawnlp(os.P_WAIT, 'convert', 'convert',
|
|
||||||
basename + '.gif', basename + '.png')
|
|
||||||
print '<img src="' + basename + '.png">'
|
print '<img src="' + basename + '.png">'
|
||||||
|
|
||||||
def render_automaton(basename, automata):
|
def render_automaton(basename, automata):
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue