* wrap/python/cgi/ltl2tgba.in: Use the uuid Python module instead
of the UNIQUE_ID environment variable to avoid being Apache-specific.
This commit is contained in:
parent
3a974d61f0
commit
d9b8fcddd6
2 changed files with 9 additions and 2 deletions
|
|
@ -28,6 +28,7 @@ import os
|
|||
import cgi
|
||||
import cgitb; cgitb.enable()
|
||||
import signal
|
||||
import uuid
|
||||
|
||||
print "Content-Type: text/html"
|
||||
print
|
||||
|
|
@ -107,8 +108,7 @@ os.system('find ' + imgdir + ' -type f -amin +15 -print | xargs rm -f')
|
|||
myself = os.environ['SCRIPT_NAME'];
|
||||
form = cgi.FieldStorage()
|
||||
filled = form.has_key('formula')
|
||||
# FIXME: This assumes Apache.
|
||||
uid = os.environ['UNIQUE_ID'];
|
||||
uid = str(uuid.uuid1())
|
||||
imgprefix = imgdir + '/' + uid
|
||||
|
||||
def escaped_print_set(dict, what):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue