From f4cebfdbae86d82dc752aefb3e88fa5482cb4177 Mon Sep 17 00:00:00 2001 From: Ivan Kravets Date: Mon, 11 Jul 2016 19:44:36 +0300 Subject: [PATCH] Fix issue when `pioenvs` folder doesn't exist --- platformio/util.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/platformio/util.py b/platformio/util.py index 34850ff7..727c9957 100644 --- a/platformio/util.py +++ b/platformio/util.py @@ -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: