Resolve Mini build helpers from the PlatformIO project directory

This commit is contained in:
mikecarper committed 2026-10-28 02:53:27 -07:00
1 parent 4261889095
commit b7c048f3f7
2 files changed
+12 -1

No files matched your search

+1 -1
View File
@@ -12,7 +12,7 @@ if env["PIOENV"] == "wio-e5-mini_repeater":
# Reuse the qualified RAK CLI's equivalent libc reply copies. Restrict
# this flag to CommonCLI.cpp; radio, framework and other objects retain
# the existing optimizer recipe.
source = Path(__file__).resolve().with_name("nrf52_flash_trim.py")
source = Path(env.subst("$PROJECT_DIR/scripts/nrf52_flash_trim.py")).resolve()
spec = importlib.util.spec_from_file_location("mesh_mini_cli_replies", source)
replies = importlib.util.module_from_spec(spec)
spec.loader.exec_module(replies)