Skip to content

Commit b0d7d92

Browse files
authored
Update espidf.py
1 parent 6ba8276 commit b0d7d92

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

builder/frameworks/espidf.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@
4343
from platformio.compat import IS_WINDOWS
4444
from platformio.proc import exec_command
4545
from platformio.builder.tools.piolib import ProjectAsLibBuilder
46+
from platformio.project.config import ProjectConfig
4647
from platformio.package.version import get_original_version, pepver_to_semver
4748

4849
# Added to avoid conflicts between installed Python packages from
@@ -333,7 +334,8 @@ def HandleCOMPONENTsettings(env):
333334

334335
if flag_custom_sdkonfig == True and "arduino" in env.subst("$PIOFRAMEWORK"):
335336
HandleArduinoIDFsettings(env)
336-
print("***** $PROJECT_PLATFORMS_DIR:", env.subst("$PROJECT_PLATFORMS_DIR"))
337+
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"))
337339
print("***** $PROJECT_CORE_DIR:", env.subst("$PROJECT_CORE_DIR"))
338340
LIB_SOURCE = os.path.join(env.subst("$PROJECT_CORE_DIR"), "platforms", "espressif32", "builder", "build_lib")
339341
print("***** Dummy Source path:", LIB_SOURCE)

0 commit comments

Comments
 (0)