diff options
Diffstat (limited to 'lib/inx')
| -rwxr-xr-x | lib/inx/extensions.py | 12 | ||||
| -rwxr-xr-x | lib/inx/inputs.py | 8 | ||||
| -rw-r--r-- | lib/inx/outputs.py | 8 |
3 files changed, 14 insertions, 14 deletions
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(), diff --git a/lib/inx/inputs.py b/lib/inx/inputs.py index cd8b57bd..667f71c9 100755 --- a/lib/inx/inputs.py +++ b/lib/inx/inputs.py @@ -3,13 +3,13 @@ # Copyright (c) 2010 Authors # Licensed under the GNU GPL version 3.0 or later. See the file LICENSE for details. -import pyembroidery +import pystitch from .utils import build_environment, write_inx_file -def pyembroidery_input_formats(): - for format in pyembroidery.supported_formats(): +def pystitch_input_formats(): + for format in pystitch.supported_formats(): if 'reader' in format and format['category'] in ['embroidery', 'color', 'stitch', 'quilting', 'debug']: yield format['extension'], format['description'] @@ -18,6 +18,6 @@ def generate_input_inx_files(alter_data): env = build_environment() template = env.get_template('input.xml') - for format, description in pyembroidery_input_formats(): + for format, description in pystitch_input_formats(): name = f"input_{format.upper()}" write_inx_file(name, template.render(alter_data, format=format, description=description)) diff --git a/lib/inx/outputs.py b/lib/inx/outputs.py index 0cf9ac84..51907f79 100644 --- a/lib/inx/outputs.py +++ b/lib/inx/outputs.py @@ -3,13 +3,13 @@ # Copyright (c) 2010 Authors # Licensed under the GNU GPL version 3.0 or later. See the file LICENSE for details. -import pyembroidery +import pystitch from .utils import build_environment, write_inx_file -def pyembroidery_output_formats(): - for format in pyembroidery.supported_formats(): +def pystitch_output_formats(): + for format in pystitch.supported_formats(): if 'writer' in format: description = format['description'] if format['category'] == "color": @@ -30,6 +30,6 @@ def generate_output_inx_files(alter_data): env = build_environment() template = env.get_template('output.xml') - for format, description, mimetype, category in pyembroidery_output_formats(): + for format, description, mimetype, category in pystitch_output_formats(): name = f"output_{format.upper()}" write_inx_file(name, template.render(alter_data, format=format, mimetype=mimetype, description=description)) |
