From e57a91307aa443052537460a1175084ab6890933 Mon Sep 17 00:00:00 2001 From: chrys87 Date: Mon, 11 Jul 2016 15:06:50 +0200 Subject: [PATCH] Update TODO --- TODO | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/TODO b/TODO index a529dc0d..b6aba9ab 100644 --- a/TODO +++ b/TODO @@ -6,8 +6,7 @@ ToDos in Priority order: commands -> a new thread should spawned from inputloop updatescreen -> maybe we could watch it with inotify vsca should support polling https://github.com/seb-m/pyinotify/wiki/Tutorial -# Example: prints statistics. -# + import pyinotify class Identity(pyinotify.ProcessEvent): @@ -15,7 +14,6 @@ class Identity(pyinotify.ProcessEvent): p = event.pathname print(p) - wm = pyinotify.WatchManager() notifier = pyinotify.Notifier(wm, default_proc_fun=Identity(), timeout=5) @@ -32,8 +30,9 @@ try: notifier.process_events() if notifier.check_events( timeout=1000): notifier.read_events() - print('drin') - notifier.stop() + print('events') + else: + print('timeout') except KeyboardInterrupt: notifier.stop() print('fin')