summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/output.py3
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)