From 731ac2868e30dbccf5771abf79564d8bab1156c2 Mon Sep 17 00:00:00 2001 From: Kaalleen <36401965+kaalleen@users.noreply.github.com> Date: Sun, 27 Jul 2025 07:28:20 +0200 Subject: rename pyembroidery to pystitch (#3889) ... and remove it as a submodule (use pip to install) --- lib/inx/extensions.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'lib/inx/extensions.py') diff --git a/lib/inx/extensions.py b/lib/inx/extensions.py index d69f0d75..cab1ece6 100755 --- a/lib/inx/extensions.py +++ b/lib/inx/extensions.py @@ -5,14 +5,14 @@ import os -import pyembroidery +import pystitch from ..commands import (COMMANDS, GLOBAL_COMMANDS, LAYER_COMMANDS, OBJECT_COMMANDS) from ..extensions import Input, Output, extensions from ..lettering.categories import FONT_CATEGORIES from ..threads import ThreadCatalog -from .outputs import pyembroidery_output_formats +from .outputs import pystitch_output_formats from .utils import build_environment, write_inx_file @@ -31,8 +31,8 @@ def object_commands(): return [(command, COMMANDS[command]) for command in OBJECT_COMMANDS] -def pyembroidery_debug_formats(): - for format in pyembroidery.supported_formats(): +def pystitch_debug_formats(): + for format in pystitch.supported_formats(): if 'writer' in format and format['category'] not in ['embroidery', 'image', 'color', 'stitch']: yield format['extension'], format['description'] @@ -55,8 +55,8 @@ def generate_extension_inx_files(alter_data): name = extension.name() template = env.get_template(f'{name}.xml') write_inx_file(name, template.render(alter_data, - formats=pyembroidery_output_formats(), - debug_formats=pyembroidery_debug_formats(), + formats=pystitch_output_formats(), + debug_formats=pystitch_debug_formats(), threadcatalog=threadcatalog(), font_categories=FONT_CATEGORIES, layer_commands=layer_commands(), -- cgit v1.2.3