summaryrefslogtreecommitdiff
path: root/lib/stitch_plan/read_file.py
diff options
context:
space:
mode:
authorKaalleen <36401965+kaalleen@users.noreply.github.com>2025-07-27 07:28:20 +0200
committerGitHub <noreply@github.com>2025-07-27 07:28:20 +0200
commit731ac2868e30dbccf5771abf79564d8bab1156c2 (patch)
tree29f3de6e7694b8ce1cac19756e4f143fd29e8bcd /lib/stitch_plan/read_file.py
parent4dd03c18acbec4c44943c224ea9b66e262e9fd76 (diff)
rename pyembroidery to pystitch (#3889)
... and remove it as a submodule (use pip to install)
Diffstat (limited to 'lib/stitch_plan/read_file.py')
-rw-r--r--lib/stitch_plan/read_file.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/stitch_plan/read_file.py b/lib/stitch_plan/read_file.py
index 56567f36..ada87958 100644
--- a/lib/stitch_plan/read_file.py
+++ b/lib/stitch_plan/read_file.py
@@ -3,7 +3,7 @@
# 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 .stitch_plan import StitchPlan
from ..svg import PIXELS_PER_MM
@@ -11,7 +11,7 @@ from ..svg import PIXELS_PER_MM
def stitch_plan_from_file(embroidery_file):
"""Read a machine embroidery file in any supported format and return a stitch plan."""
- pattern = pyembroidery.read(embroidery_file)
+ pattern = pystitch.read(embroidery_file)
stitch_plan = StitchPlan()
color_block = None
@@ -20,7 +20,7 @@ def stitch_plan_from_file(embroidery_file):
color_block = stitch_plan.new_color_block(thread)
for x, y, command in raw_stitches:
color_block.add_stitch(x * PIXELS_PER_MM / 10.0, y * PIXELS_PER_MM / 10.0,
- jump=(command == pyembroidery.JUMP),
- trim=(command == pyembroidery.TRIM))
+ jump=(command == pystitch.JUMP),
+ trim=(command == pystitch.TRIM))
return stitch_plan