Skip to content
Snippets Groups Projects
Commit 91584a30 authored by gijs's avatar gijs
Browse files

HPGL export works now.

parent 00929f87
No related branches found
No related tags found
No related merge requests found
......@@ -243,8 +243,11 @@ def hpgl (id):
svg = ascii2svg(ascii_input, params['weight'])
# store as a temporary file
(svg_file, svg_path) = tempfile.mkstemp()
svg_file.write(svg)
(svg_file, svg_path) = tempfile.mkstemp('.svg')
with open(svg_file, 'w') as svg_handle:
svg_handle.write(svg)
# transform to hpgl
hpgl = svgToHPGL(svg_path)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment