From e4f5035fb1dde8303b4baf38c969e809519c01aa Mon Sep 17 00:00:00 2001 From: Kaalleen <36401965+kaalleen@users.noreply.github.com> Date: Sun, 31 Dec 2023 11:16:09 +0100 Subject: autorun: fix networkx no path (#2645) --- lib/stitches/auto_run.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'lib/stitches/auto_run.py') diff --git a/lib/stitches/auto_run.py b/lib/stitches/auto_run.py index d833a885..b8ab84c7 100644 --- a/lib/stitches/auto_run.py +++ b/lib/stitches/auto_run.py @@ -5,23 +5,22 @@ from collections import defaultdict +import inkex import networkx as nx from shapely.geometry import LineString, MultiLineString, MultiPoint, Point from shapely.ops import nearest_points, substring, unary_union -import inkex - from ..commands import add_commands from ..elements import Stroke from ..i18n import _ from ..svg import PIXELS_PER_MM, generate_unique_id from ..svg.tags import INKSCAPE_LABEL, INKSTITCH_ATTRIBS +from ..utils.threading import check_stop_flag from .utils.autoroute import (add_elements_to_group, add_jumps, create_new_group, find_path, get_starting_and_ending_nodes, preserve_original_groups, remove_original_elements) -from ..utils.threading import check_stop_flag class LineSegments: -- cgit v1.2.3