Skip to content

Commit 29237e3

Browse files
authored
check for ulp dir in project
1 parent f17f13c commit 29237e3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

platform.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ def install_tool(TOOL):
138138

139139
# Set ULP toolchain if applicable
140140
ulp_toolchain = toolchain_data.get("ulp_toolchain")
141-
if ulp_toolchain and os.path.isdir("ulp"):
141+
if ulp_toolchain and os.path.join(ProjectConfig.get_instance().get("platformio", "project_dir"), "ulp"):
142142
for toolchain in ulp_toolchain:
143143
self.packages[toolchain]["optional"] = False
144144
# Install debug tools if conditions match

0 commit comments

Comments
 (0)