diff options
| author | Lex Neva <lexelby@users.noreply.github.com> | 2018-06-17 21:32:24 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-06-17 21:32:24 -0400 |
| commit | d3866deb4a686f96265a76f670db1386e9b459ba (patch) | |
| tree | 8a409901a19acc8f14252f430807c7964e62aadc /lib/extensions/embroider.py | |
| parent | 564f15cd55954afde358eed24809632e6ea9c2d7 (diff) | |
| parent | 0659bc294e943bcaa10f63966e667003623e6da4 (diff) | |
Merge pull request #198 from lexelby/lexelby-output-extension
output extensions
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): |
