Skip to content

Commit 5b43aea

Browse files
authored
Refactor file handling for custom_sdkconfig
1 parent 77bc425 commit 5b43aea

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

builder/frameworks/espidf.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -213,8 +213,8 @@ def load_custom_sdkconfig_file():
213213
print(f"Error decoding response from {file_entry}: {e}")
214214
return ""
215215

216-
# Handle local files
217-
if "file://" in file_entry:
216+
# Treat as local file if explicitly file:// or a non-URL token that isn't a flag
217+
if "file://" in file_entry or ("://" not in file_entry and "=" not in file_entry):
218218
file_ref = file_entry[7:] if file_entry.startswith("file://") else file_entry
219219

220220
if os.path.isabs(file_ref):
@@ -561,7 +561,7 @@ def populate_idf_env_vars(idf_env):
561561
os.path.dirname(get_python_exe()),
562562
]
563563

564-
idf_env["PATH"] = os.pathsep.join(additional_packages + [idf_env["PATH"]])
564+
idf_env["PATH"] = os.pathsep.join([*additional_packages, idf_env["PATH"]])
565565
idf_env["ESP_ROM_ELF_DIR"] = platform.get_package_dir("tool-esp-rom-elfs")
566566

567567

0 commit comments

Comments
 (0)