diff options
| author | Kaalleen <36401965+kaalleen@users.noreply.github.com> | 2025-07-27 07:28:20 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-07-27 07:28:20 +0200 |
| commit | 731ac2868e30dbccf5771abf79564d8bab1156c2 (patch) | |
| tree | 29f3de6e7694b8ce1cac19756e4f143fd29e8bcd /lib/extensions | |
| parent | 4dd03c18acbec4c44943c224ea9b66e262e9fd76 (diff) | |
rename pyembroidery to pystitch (#3889)
... and remove it as a submodule (use pip to install)
Diffstat (limited to 'lib/extensions')
| -rw-r--r-- | lib/extensions/apply_threadlist.py | 4 | ||||
| -rw-r--r-- | lib/extensions/batch_lettering.py | 4 | ||||
| -rw-r--r-- | lib/extensions/zip.py | 4 |
3 files changed, 6 insertions, 6 deletions
diff --git a/lib/extensions/apply_threadlist.py b/lib/extensions/apply_threadlist.py index 5b831ff5..d01bd8e2 100644 --- a/lib/extensions/apply_threadlist.py +++ b/lib/extensions/apply_threadlist.py @@ -10,7 +10,7 @@ from typing import List, Optional import inkex -import pyembroidery +import pystitch from ..i18n import _ from ..svg.tags import INKSTITCH_ATTRIBS @@ -105,7 +105,7 @@ class ApplyThreadlist(InkstitchExtension): def parse_color_format(self, path: str) -> List[List[Optional[str]]]: colors = [] - threads = pyembroidery.read(path).threadlist + threads = pystitch.read(path).threadlist for color in threads: if color.description is not None and color.description.startswith("Cut"): # there is a maximum of 4 needles, we can simply take the last element from the description string diff --git a/lib/extensions/batch_lettering.py b/lib/extensions/batch_lettering.py index 70beaaf7..c0581e76 100644 --- a/lib/extensions/batch_lettering.py +++ b/lib/extensions/batch_lettering.py @@ -14,7 +14,7 @@ from zipfile import ZipFile from inkex import Boolean, Group, errormsg from lxml import etree -import pyembroidery +import pystitch from ..extensions.lettering_along_path import TextAlongPath from ..i18n import _ @@ -69,7 +69,7 @@ class BatchLettering(InkstitchExtension): if not self.options.formats: errormsg(_("Please specify at least one output file format")) return - available_formats = [file_format['extension'] for file_format in pyembroidery.supported_formats()] + ['svg'] + available_formats = [file_format['extension'] for file_format in pystitch.supported_formats()] + ['svg'] file_formats = self.options.formats.split(',') file_formats = [file_format.strip().lower() for file_format in file_formats if file_format.strip().lower() in available_formats] if not file_formats: diff --git a/lib/extensions/zip.py b/lib/extensions/zip.py index 13cae7bd..2cee5f04 100644 --- a/lib/extensions/zip.py +++ b/lib/extensions/zip.py @@ -13,7 +13,7 @@ from inkex import Boolean, errormsg from inkex.units import convert_unit from lxml import etree -import pyembroidery +import pystitch from ..i18n import _ from ..output import write_embroidery_file @@ -35,7 +35,7 @@ class Zip(InkstitchExtension): # it's kind of obnoxious that I have to do this... self.formats = [] - for format in pyembroidery.supported_formats(): + for format in pystitch.supported_formats(): if 'writer' in format and format['category'] in ['embroidery', 'color', 'image', 'stitch', 'quilting']: extension = format['extension'] self.arg_parser.add_argument('--format-%s' % extension, type=Boolean, default=False, dest=extension) |
