diff --git a/builder/frameworks/espidf.py b/builder/frameworks/espidf.py index 885ac9b88..2a7d677ea 100644 --- a/builder/frameworks/espidf.py +++ b/builder/frameworks/espidf.py @@ -118,11 +118,11 @@ 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() + ["$BUILD_FLAGS"].clear() + ["$BUILD_UNFLAGS"].clear() PROJECT_SRC_DIR = PROJECT_SRC_DIR.replace("tasmota", "dummy") - env("$PROJECT_SRC_DIR").clear() - env("$PROJECT_SRC_DIR").append(PROJECT_SRC_DIR) + ["$PROJECT_SRC_DIR"].clear() + ["$PROJECT_SRC_DIR"].append(PROJECT_SRC_DIR) except: pass print("Source Dir", PROJECT_SRC_DIR)