Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion builder/frameworks/arduino.py
Original file line number Diff line number Diff line change
Expand Up @@ -565,7 +565,8 @@ def safe_remove_sdkconfig_files():

SConscript("_embed_files.py", exports="env")

flag_any_custom_sdkconfig = exists(str(Path(FRAMEWORK_LIB_DIR) / "sdkconfig"))
flag_any_custom_sdkconfig = (FRAMEWORK_LIB_DIR is not None and
exists(str(Path(FRAMEWORK_LIB_DIR) / "sdkconfig")))


def has_unicore_flags():
Expand Down Expand Up @@ -644,6 +645,8 @@ def call_compile_libs():
def is_framework_subfolder(potential_subfolder):
"""Check if a path is a subfolder of the framework SDK directory"""
# carefully check before change this function
if FRAMEWORK_SDK_DIR is None:
return False
if not isabs(potential_subfolder):
return False
if (splitdrive(FRAMEWORK_SDK_DIR)[0] !=
Expand Down
Loading