summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLex Neva <github.com@lexneva.name>2018-08-24 21:47:23 -0400
committerLex Neva <github.com@lexneva.name>2018-09-01 20:11:01 -0400
commit1531e8f52014c871646db770e0066d56d757a880 (patch)
treee1110ebfc0a373e844c272e8e6f9e726c875c776
parent29a8bd37d5f0d10ee3b306caeee9a9d46247b02e (diff)
support ~, and %vars% in Embroider output directory (#279)
-rw-r--r--lib/extensions/embroider.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/extensions/embroider.py b/lib/extensions/embroider.py
index 921201d6..7c8adfc9 100644
--- a/lib/extensions/embroider.py
+++ b/lib/extensions/embroider.py
@@ -39,7 +39,7 @@ class Embroider(InkstitchExtension):
def get_output_path(self):
if self.options.output_file:
- output_path = os.path.join(self.options.path, self.options.output_file)
+ output_path = os.path.join(os.path.expanduser(os.path.expandvars(self.options.path)), self.options.output_file)
else:
csv_filename = '%s.%s' % (self.get_base_file_name(), self.options.output_format)
output_path = os.path.join(self.options.path, csv_filename)