mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
Merge branch 'bugfix/create_dir_idf_env_v4.3' into 'release/v4.3'
tools: Create the ".espressif" directory on the first run on clean system (v4.3) See merge request espressif/esp-idf!15856
This commit is contained in:
commit
88f671b54e
@ -1048,6 +1048,9 @@ def export_targets_to_idf_env_json(targets): # type: (list[str]) -> None
|
|||||||
break
|
break
|
||||||
|
|
||||||
try:
|
try:
|
||||||
|
if global_idf_tools_path: # mypy fix for Optional[str] in the next call
|
||||||
|
# the directory doesn't exist if this is run on a clean system the first time
|
||||||
|
mkdir_p(global_idf_tools_path)
|
||||||
with open(os.path.join(global_idf_tools_path, IDF_ENV_FILE), 'w') as w: # type: ignore
|
with open(os.path.join(global_idf_tools_path, IDF_ENV_FILE), 'w') as w: # type: ignore
|
||||||
json.dump(idf_env_json, w, indent=4)
|
json.dump(idf_env_json, w, indent=4)
|
||||||
except (IOError, OSError):
|
except (IOError, OSError):
|
||||||
|
Loading…
Reference in New Issue
Block a user