From 533fc21a2538d8248361f953855d382f237eb04c Mon Sep 17 00:00:00 2001 From: Alexandre Duret-Lutz Date: Tue, 16 Jun 2015 18:03:02 +0200 Subject: [PATCH] * wrap/python/ajax/spotcgi.in: Simplify using spot.setup(). --- wrap/python/ajax/spotcgi.in | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/wrap/python/ajax/spotcgi.in b/wrap/python/ajax/spotcgi.in index 73505f85a..15b73d639 100755 --- a/wrap/python/ajax/spotcgi.in +++ b/wrap/python/ajax/spotcgi.in @@ -212,6 +212,8 @@ except IOError: import spot import buddy +spot.setup(size='8.2,8.2',fillcolor='#FDEDD3') + def alarm_handler(signum, frame): unbufprint("""

The script was aborted because it has been running for too long. Please try a shorter formula, @@ -225,7 +227,7 @@ def run_dot(basename, ext): # Do not call "dot" to generate a file that already exists. if not os.access(outname, os.F_OK): os.spawnlp(os.P_WAIT, dot, dot, dot_bgcolor, '-T' + ext, - '-Gsize=8.2,8.2', '-o', outname, basename + '.txt') + '-o', outname, basename + '.txt') # Create a unused hardlink that points to the output picture # just to remember how many cache entries are sharing it. os.link(outname, tmpdir + "/" + ext) @@ -288,11 +290,11 @@ However you may download the