1
0
mirror of https://github.com/esphome/esphome.git synced 2025-09-10 07:12:21 +01:00

Fix wizard mkdir (#824)

* Fix CLI wizard mkdir_p with empty path

Fixes https://github.com/esphome/issues/issues/796

* Cleanup

* Lint
This commit is contained in:
Otto Winter
2019-11-02 19:35:37 +01:00
committed by GitHub
parent 90f909d2ea
commit be6b4ee47f
3 changed files with 5 additions and 6 deletions

View File

@@ -80,6 +80,9 @@ def run_system_command(*args):
def mkdir_p(path):
if not path:
# Empty path - means create current dir
return
try:
os.makedirs(path)
except OSError as err: