diff options
| author | Rick Levine <rick@xoab.us> | 2023-02-16 10:32:37 -0800 |
|---|---|---|
| committer | Rick Levine <rick@xoab.us> | 2023-02-16 10:32:37 -0800 |
| commit | ca819c51fc20a694bbbf6a47876dc0546c508509 (patch) | |
| tree | 600d1f5a3cd576955599b866ce26f56c226ec80d | |
| parent | b1ffd8ad92b4803998b5447b45e71c30250db739 (diff) | |
Simplify getting docname
| -rw-r--r-- | lib/output.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/output.py b/lib/output.py index 3ce6e5cd..fb4580b7 100644 --- a/lib/output.py +++ b/lib/output.py @@ -63,8 +63,7 @@ def write_embroidery_file(file_path, stitch_plan, svg, settings={}): pattern = pyembroidery.EmbPattern() # For later use when writing .dst header title field. - svg_docname = svg.root.attrib['{http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd}docname'] - pattern.extras['name'] = os.path.splitext(os.path.basename(svg_docname))[0] + pattern.extras['name'] = os.path.splitext(svg.name)[0] stitch = Stitch(0, 0) |
