diff options
| author | Lex Neva <github.com@lexneva.name> | 2018-06-12 22:15:32 -0400 |
|---|---|---|
| committer | Lex Neva <github.com@lexneva.name> | 2018-06-15 21:44:52 -0400 |
| commit | ea1135c1451ab2db54fd52fbf48a8eee9c5a43e0 (patch) | |
| tree | e3cc80975a9bd012f195b410ddefb610b8846c5f /lib/extensions/embroider.py | |
| parent | b4dd5a1e8fac21b4d40e3a839715834ea243e49a (diff) | |
add ZIP batch export extension
Diffstat (limited to 'lib/extensions/embroider.py')
| -rw-r--r-- | lib/extensions/embroider.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/extensions/embroider.py b/lib/extensions/embroider.py index a213be64..1e994e27 100644 --- a/lib/extensions/embroider.py +++ b/lib/extensions/embroider.py @@ -44,8 +44,7 @@ class Embroider(InkstitchExtension): if self.options.output_file: output_path = os.path.join(self.options.path, self.options.output_file) else: - svg_filename = self.document.getroot().get(inkex.addNS('docname', 'sodipodi'), "embroidery.svg") - csv_filename = svg_filename.replace('.svg', '.%s' % self.options.output_format) + csv_filename = '%s.%s' % (self.get_base_file_name(), self.options.output_format) output_path = os.path.join(self.options.path, csv_filename) def add_suffix(path, suffix): |
