mirror of
https://gitlab.constantvzw.org/osp/tools.cobbled-paths.git
synced 2025-01-08 00:31:01 +01:00
HPGL export works now.
This commit is contained in:
parent
00929f87b5
commit
91584a306a
7
app.py
7
app.py
@ -243,8 +243,11 @@ def hpgl (id):
|
|||||||
svg = ascii2svg(ascii_input, params['weight'])
|
svg = ascii2svg(ascii_input, params['weight'])
|
||||||
|
|
||||||
# store as a temporary file
|
# store as a temporary file
|
||||||
(svg_file, svg_path) = tempfile.mkstemp()
|
(svg_file, svg_path) = tempfile.mkstemp('.svg')
|
||||||
svg_file.write(svg)
|
|
||||||
|
|
||||||
|
with open(svg_file, 'w') as svg_handle:
|
||||||
|
svg_handle.write(svg)
|
||||||
|
|
||||||
# transform to hpgl
|
# transform to hpgl
|
||||||
hpgl = svgToHPGL(svg_path)
|
hpgl = svgToHPGL(svg_path)
|
||||||
|
Loading…
Reference in New Issue
Block a user