Skip to content

Commit

Permalink
lib.smarthome: create necessary dirs
Browse files Browse the repository at this point in the history
  • Loading branch information
Morg42 committed Oct 14, 2024
1 parent eb99adb commit 5b63683
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/smarthome.py
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,9 @@ def create_directories(self):
"""
Create directories used by SmartHomeNG if they don't exist
"""
os.makedirs(self._items_dir, mode=0o775, exist_ok=True)
os.makedirs(self._scenes_dir, mode=0o775, exist_ok=True)
os.makedirs(self._functions_dir, mode=0o775, exist_ok=True)
os.makedirs(self._structs_dir, mode=0o775, exist_ok=True)

os.makedirs(self._var_dir, mode=0o775, exist_ok=True)
Expand Down

0 comments on commit 5b63683

Please sign in to comment.