mirror of
https://github.com/platformio/platformio-core.git
synced 2025-07-29 17:47:14 +02:00
Fix issue when pioenvs
folder doesn't exist
This commit is contained in:
@ -217,6 +217,8 @@ def get_pioenvs_dir():
|
||||
"envs_dir",
|
||||
join(get_project_dir(), ".pioenvs")
|
||||
)
|
||||
if not isdir(path):
|
||||
os.makedirs(path)
|
||||
dontmod_path = join(path, "do-not-modify-files-here.url")
|
||||
if not isfile(dontmod_path):
|
||||
with open(dontmod_path, "w") as fp:
|
||||
|
Reference in New Issue
Block a user