From cae59d95da8f0e02f3a84dcbafb93271256e759c Mon Sep 17 00:00:00 2001 From: Jason2866 <24528715+Jason2866@users.noreply.github.com> Date: Sun, 29 Sep 2024 20:52:30 +0200 Subject: [PATCH] replace env entrys --- builder/frameworks/espidf.py | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/builder/frameworks/espidf.py b/builder/frameworks/espidf.py index f086df37a..429b38fcf 100644 --- a/builder/frameworks/espidf.py +++ b/builder/frameworks/espidf.py @@ -112,7 +112,17 @@ print("Build Flags", env.subst("$BUILD_FLAGS")) print("Build UnFlags", env.subst("$BUILD_UNFLAGS")) print("Source Dir", PROJECT_SRC_DIR) -print("Custom Pio sdkconfig", env.GetProjectOption("custom_sdkconfig").splitlines()) +try: + print("Custom Pio sdkconfig", env.GetProjectOption("custom_sdkconfig").splitlines()) + if env.GetProjectOption("custom_sdkconfig").splitlines(): + ORIG_BUILD_FLAGS = env.subst("$BUILD_FLAGS") + ORIG_BUILD_UNFLAGS = env.subst("$BUILD_UNFLAGS") + ORIG_PROJECT_SRC_DIR = PROJECT_SRC_DIR + env("$BUILD_FLAGS").clear() + env("$BUILD_UNFLAGS").clear() + PROJECT_SRC_DIR = PROJECT_SRC_DIR.replace("tasmota", "dummy") +except: + pass def get_project_lib_includes(env): project = ProjectAsLibBuilder(env, "$PROJECT_DIR")