Browse Source

HPGL export works now.

master
Gijs 7 months ago
parent
commit
91584a306a
  1. 7
      app.py

7
app.py

@ -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)

Loading…
Cancel
Save