fix examples in README.md

This commit is contained in:
2020-11-04 10:44:42 +01:00
parent 818fb608e7
commit 764b97396b
2 changed files with 44 additions and 34 deletions

View File

@@ -113,7 +113,7 @@ async def task(event, task_id):
s = TaskScheduler(task=task, files=True, dirs=True)
event_map = EventMap(default_task=task)
event_map = EventMap(default_task=s.schedule)
watch = Watch(path="/tmp", event_map=event_map, rec=True, auto_add=True)
pyinotifyd_config = PyinotifydConfig(
@@ -125,8 +125,8 @@ pyinotifyd_config = PyinotifydConfig(
s = ShellScheduler(
cmd="/usr/local/sbin/task.sh {pathname}", files=True, dirs=False)
event_map = EventMap({"IN_WRITE_CLOSE": s.schedule,
"IN_DELETE": s.schedule})
event_map = EventMap({"IN_WRITE_CLOSE": s.schedule})
watch = Watch(path="/tmp", event_map=event_map, rec=True, auto_add=True)
pyinotifyd_config = PyinotifydConfig(