kopia lustrzana https://github.com/inkstitch/inkstitch
partial fix for unicode filenames (#478)
rodzic
18f50a93eb
commit
2258bf76ca
|
@ -39,10 +39,14 @@ class Embroider(InkstitchExtension):
|
||||||
|
|
||||||
def get_output_path(self):
|
def get_output_path(self):
|
||||||
if self.options.output_file:
|
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:
|
else:
|
||||||
csv_filename = '%s.%s' % (self.get_base_file_name(), 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)
|
output_path = os.path.join(self.options.path.decode("UTF-8"), csv_filename)
|
||||||
|
|
||||||
def add_suffix(path, suffix):
|
def add_suffix(path, suffix):
|
||||||
if suffix > 0:
|
if suffix > 0:
|
||||||
|
|
Ładowanie…
Reference in New Issue