Fix issue when pioenvs folder doesn't exist

This commit is contained in:
Ivan Kravets
2016-07-11 19:44:36 +03:00
parent 2fdc57055b
commit f4cebfdbae

View File

@ -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: