From 0ee623d23243cc9378f2fac319c5462fd972ad3b Mon Sep 17 00:00:00 2001 From: Walter Bender Date: Tue, 23 Jul 2013 15:53:32 +0000 Subject: fix more problems with saving to svg --- (limited to 'TurtleArt/tacanvas.py') diff --git a/TurtleArt/tacanvas.py b/TurtleArt/tacanvas.py index 9d44ed1..89b8ed1 100644 --- a/TurtleArt/tacanvas.py +++ b/TurtleArt/tacanvas.py @@ -28,7 +28,7 @@ import cairo import pangocairo from tautils import get_path -from taconstants import COLORDICT +from taconstants import COLORDICT, TMP_SVG_PATH def wrap100(n): @@ -127,8 +127,7 @@ class TurtleGraphics: 'output.svg'), self.width, self.height) else: svg_surface = cairo.SVGSurface( - os.path.join('/tmp', 'turtle_output.svg'), - self.width, self.height) + TMP_SVG_PATH, self.width, self.height) self.cr_svg = cairo.Context(svg_surface) self.cr_svg.set_line_cap(1) # Set the line cap to be round -- cgit v0.9.1