Skip to content

Commit 70513c0

Browse files
committed
Create extra configuration directory if it does not exist before starting the watchdog
1 parent bad7f62 commit 70513c0

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

mongoose/core/watchdogs.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
class DropInConfigurationWatcher:
1818
def __init__(self, configuration_dir: Path, event_handler: FileSystemEventHandler):
1919
self.configuration_dir = configuration_dir
20+
self.configuration_dir.mkdir(parents=True, exist_ok=True)
2021
self.event_handler = event_handler
2122
self.observer = Observer()
2223

0 commit comments

Comments
 (0)