def __init__(self, path, recursive=False): super().__init__() self._queue = DelayedQueue(self.delay) self._inotify = Inotify(path, recursive) self.start()
def __init__(self, path, recursive=False): BaseThread.__init__(self) self._queue = DelayedQueue(self.delay) self._inotify = Inotify(path, recursive) self.start()
def on_thread_start(self): """ Start reading inotify events. """ self._inotify = Inotify(self._path, self._recursive)