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
parent 7adaeacd0b
commit e2c8b21195
3 changed files with 5 additions and 6 deletions
+3
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: