summaryrefslogtreecommitdiff
path: root/watcher.py
diff options
context:
space:
mode:
authorMichaël Ball <michael.ball@gmail.com>2017-08-12 12:37:35 +0100
committerMichaël Ball <michael.ball@gmail.com>2017-08-12 12:37:35 +0100
commite9c19e05c6ae79d70f4dcfd8543ff2036147e20f (patch)
tree735b00da30a6d6adba65c619bbf4fa5125df9ad5 /watcher.py
parentda5c7e73112db917f2fb0c91635c48954cc3648e (diff)
Correctly run watcher on app start.
Diffstat (limited to 'watcher.py')
-rw-r--r--watcher.py3
1 files changed, 3 insertions, 0 deletions
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: