summaryrefslogtreecommitdiff
path: root/lib/extensions/embroider.py
diff options
context:
space:
mode:
authorKaalleen <36401965+kaalleen@users.noreply.github.com>2019-07-28 10:02:28 +0200
committerGitHub <noreply@github.com>2019-07-28 10:02:28 +0200
commitd5e873f8c50789b94e24d27a30c72f65ba9c08a3 (patch)
treeffa31c0f808f67857cdf7f86ecd2a9da41590a06 /lib/extensions/embroider.py
parent833a8a971d8a73fbc42468a89d083e37a0bd6d8d (diff)
parente81e819602a3823ec344d412ba2e5213349fb2c4 (diff)
Merge pull request #481
show various bugs the door
Diffstat (limited to 'lib/extensions/embroider.py')
-rw-r--r--lib/extensions/embroider.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/extensions/embroider.py b/lib/extensions/embroider.py
index 1a578031..b9089612 100644
--- a/lib/extensions/embroider.py
+++ b/lib/extensions/embroider.py
@@ -39,10 +39,14 @@ class Embroider(InkstitchExtension):
def get_output_path(self):
if self.options.output_file:
- output_path = os.path.join(os.path.expanduser(os.path.expandvars(self.options.path)), self.options.output_file)
+ # This is helpful for folks that run the embroider extension
+ # manually from the command line (without Inkscape) for
+ # debugging purposes.
+ output_path = os.path.join(os.path.expanduser(os.path.expandvars(self.options.path.decode("UTF-8"))),
+ self.options.output_file.decode("UTF-8"))
else:
csv_filename = '%s.%s' % (self.get_base_file_name(), self.options.output_format)
- output_path = os.path.join(self.options.path, csv_filename)
+ output_path = os.path.join(self.options.path.decode("UTF-8"), csv_filename)
def add_suffix(path, suffix):
if suffix > 0: