From 67c00f3c6e156cf23c3a91815251a8dedeea717f Mon Sep 17 00:00:00 2001 From: jim Date: Wed, 10 Dec 2025 12:28:03 -0800 Subject: [PATCH] Select one unity_config.h directory Fix Issue #816 by appending only the first directory found containing a unity_config.h to the include path --- platformio-build.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/platformio-build.py b/platformio-build.py index 51251ddd..0d95c74c 100644 --- a/platformio-build.py +++ b/platformio-build.py @@ -20,5 +20,7 @@ p = projenv.subst(p) if os.path.isfile(os.path.join(p, "unity_config.h")): env.Prepend(CPPPATH=[p]) + # Stop at the first unity_config.h found to include. + break except: pass