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:
@@ -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:
|
||||
|
Reference in New Issue
Block a user