diff options
| author | Kaalleen <36401965+kaalleen@users.noreply.github.com> | 2024-07-14 15:40:16 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-07-14 15:40:16 +0200 |
| commit | 6a39662fd15a36a656ad1cf5779c865890d789b3 (patch) | |
| tree | 5346c66175204660d74100630d58e83d751eeb70 /lib/extensions/input.py | |
| parent | 2ad75356ddeeaa6d87c10289479e90d50f4a378b (diff) | |
Command translations (#3075)
* command translations
* windows: do not unescape
Diffstat (limited to 'lib/extensions/input.py')
| -rw-r--r-- | lib/extensions/input.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/extensions/input.py b/lib/extensions/input.py index 3bcbb5a2..7e525438 100644 --- a/lib/extensions/input.py +++ b/lib/extensions/input.py @@ -4,6 +4,7 @@ # Licensed under the GNU GPL version 3.0 or later. See the file LICENSE for details. from html import unescape +from sys import platform from inkex import errormsg from lxml import etree @@ -21,4 +22,8 @@ class Input(object): errormsg(msg) exit(0) stitch_plan = generate_stitch_plan(embroidery_file) - print(unescape(etree.tostring(stitch_plan).decode('utf-8'))) + out = etree.tostring(stitch_plan).decode('utf-8') + if platform == "win32": + print(out) + else: + print(unescape(out)) |
