From 28534cf1a8d692687d9f40c3be622e0945b5a2ee Mon Sep 17 00:00:00 2001 From: Kaalleen <36401965+kaalleen@users.noreply.github.com> Date: Fri, 8 Jul 2022 07:33:45 +0200 Subject: linux scipy/linalg libraries: ELF (#1714) * do not strip any scipy library for linux * apply settings to debug formats * use fixed pyembroidery Co-authored-by: Lex Neva --- lib/output.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'lib/output.py') diff --git a/lib/output.py b/lib/output.py index 65e6f64d..a65a3af1 100644 --- a/lib/output.py +++ b/lib/output.py @@ -57,7 +57,7 @@ def write_embroidery_file(file_path, stitch_plan, svg, settings={}): scale = 10 / PIXELS_PER_MM origin = get_origin(svg, stitch_plan.bounding_box) - origin = origin * scale + # origin = origin * scale pattern = pyembroidery.EmbPattern() stitch = Stitch(0, 0) @@ -86,6 +86,9 @@ def write_embroidery_file(file_path, stitch_plan, svg, settings={}): "full_jump": True, }) + if not file_path.endswith(('.col', '.edr', '.inf')): + settings['encode'] = True + if file_path.endswith('.csv'): # Special treatment for CSV: instruct pyembroidery not to do any post- # processing. This will allow the user to match up stitch numbers seen -- cgit v1.2.3