From e9c19e05c6ae79d70f4dcfd8543ff2036147e20f Mon Sep 17 00:00:00 2001 From: Michaƫl Ball Date: Sat, 12 Aug 2017 12:37:35 +0100 Subject: Correctly run watcher on app start. --- watcher.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'watcher.py') diff --git a/watcher.py b/watcher.py index 353636a..ffb4a42 100644 --- a/watcher.py +++ b/watcher.py @@ -126,6 +126,9 @@ class LibraryWatcher(object): register(self.stop) + while True: + self.check_for_events() + def stop(self): """Remove all the watched paths.""" if self.wdd[self.path] > 0: -- cgit v1.2.3