Skip to content

Commit 12cc831

Browse files
authored
Fix path platforms dir
1 parent b0d7d92 commit 12cc831

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

builder/frameworks/espidf.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -335,9 +335,7 @@ def HandleCOMPONENTsettings(env):
335335
if flag_custom_sdkonfig == True and "arduino" in env.subst("$PIOFRAMEWORK"):
336336
HandleArduinoIDFsettings(env)
337337
print("***** Project Config get Platforms dir:", os.path.join(ProjectConfig.get_instance().get("platformio", "platforms_dir")))
338-
print("***** $PLATFORMIO_PLATFORMS_DIR:", env.subst("$PLATFORMIO_PLATFORMS_DIR"))
339-
print("***** $PROJECT_CORE_DIR:", env.subst("$PROJECT_CORE_DIR"))
340-
LIB_SOURCE = os.path.join(env.subst("$PROJECT_CORE_DIR"), "platforms", "espressif32", "builder", "build_lib")
338+
LIB_SOURCE = os.path.join(ProjectConfig.get_instance().get("platformio", "platforms_dir"), "espressif32", "builder", "build_lib")
341339
print("***** Dummy Source path:", LIB_SOURCE)
342340
if not bool(os.path.exists(os.path.join(PROJECT_DIR, ".dummy"))):
343341
shutil.copytree(LIB_SOURCE, os.path.join(PROJECT_DIR, ".dummy"))

0 commit comments

Comments
 (0)