Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Spot
Spot
Commits
cfcc5e85
Commit
cfcc5e85
authored
Feb 02, 2004
by
Alexandre Duret-Lutz
Browse files
* wrap/python/cgi/ltl2tgba.in: Import spot and redirect stderr
to stdout early.
parent
59125b2a
Changes
2
Hide whitespace changes
Inline
Side-by-side
ChangeLog
View file @
cfcc5e85
2004-02-02 Alexandre Duret-Lutz <adl@gnu.org>
* wrap/python/cgi/ltl2tgba.in: Import spot and redirect stderr
to stdout early.
* wrap/python/cgi/ltl2tgba.in (print_stats): Compute and display
the number of acceptance conditions.
...
...
wrap/python/cgi/ltl2tgba.in
View file @
cfcc5e85
...
...
@@ -26,10 +26,21 @@ import os
import
cgi
import
cgitb
;
cgitb
.
enable
()
print
"Content-Type: text/html"
print
# Redirect stderr to stdout.
os
.
close
(
sys
.
stderr
.
fileno
())
os
.
dup2
(
sys
.
stdout
.
fileno
(),
sys
.
stderr
.
fileno
())
sys
.
path
.
insert
(
0
,
'@pythondir@'
)
# Directory for temporary files (images and other auxiliary files).
imgdir
=
'spotimg'
import
spot
import
buddy
# Cleanup stale files from our image directory.
os
.
system
(
'find '
+
imgdir
+
' -type f -amin +10 -print | xargs rm -f'
)
...
...
@@ -105,15 +116,6 @@ def render_bdd(basename, dictionary, bdd):
render_dot
(
basename
)
print
"Content-Type: text/html"
print
os
.
close
(
sys
.
stderr
.
fileno
())
os
.
dup2
(
sys
.
stdout
.
fileno
(),
sys
.
stderr
.
fileno
())
import
spot
import
buddy
print
"<TITLE>LTL-to-Bchi test</TITLE>"
print
"<H1>Input</H1>"
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment