From 972da86fbc2d0733f454fdfd9feea1c713072c62 Mon Sep 17 00:00:00 2001 From: ExPikaPaka Date: Thu, 4 Jun 2026 09:08:27 +0200 Subject: [PATCH] Fix incorrect path at codegen config --- tools/validate_codegen.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tools/validate_codegen.py b/tools/validate_codegen.py index f167485acc..e472f6179f 100644 --- a/tools/validate_codegen.py +++ b/tools/validate_codegen.py @@ -98,8 +98,9 @@ def parse_generated_settings(gen_path): def main(): - orig_path = Path("src/libslic3r/PrintConfig.cpp") - gen_path = Path("codegen/generated/PrintConfigDef_generated.cpp") + root = Path(__file__).resolve().parent.parent + orig_path = root / "src/libslic3r/PrintConfig.cpp" + gen_path = root / "src/slic3r/GUI/generated/PrintConfigDef_generated.cpp" if not orig_path.exists() or not gen_path.exists(): print("ERROR: Required files not found")