From c9326b2d53f8132328060181e3aec1de71326d6a Mon Sep 17 00:00:00 2001 From: csd4ni3l Date: Tue, 16 Sep 2025 19:55:32 +0200 Subject: [PATCH] fix windows crash again by not even importing svgpathtools --- game/physics_playground/game.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/game/physics_playground/game.py b/game/physics_playground/game.py index 87384fa..78ffb76 100644 --- a/game/physics_playground/game.py +++ b/game/physics_playground/game.py @@ -6,8 +6,6 @@ from arcade.gui.experimental.scroll_area import UIScrollArea, UIScrollBar from pymunk.autogeometry import convex_decomposition -from svgpathtools import svg2paths - from game.physics_playground.body_inventory import BodyInventory from utils.constants import menu_background_color, button_style @@ -282,7 +280,10 @@ class Game(arcade.gui.UIView): return pts def add_custom_body(self, file_path): + #add imports here to avoid Windows crash import cairosvg + from svgpathtools import svg2paths + paths, _ = svg2paths(file_path) pts = self.sample_path(paths[0], 64)