From 179e06d6e94ce71a80fb3356e33b3c9ab2814b80 Mon Sep 17 00:00:00 2001 From: A_D Date: Wed, 22 Jul 2020 18:03:32 +0200 Subject: [PATCH] added informational comment on private access --- monitor.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/monitor.py b/monitor.py index ae2f707d..dc1165a4 100644 --- a/monitor.py +++ b/monitor.py @@ -274,7 +274,8 @@ class EDLogs(FileSystemEventHandler): # type: ignore # See below self.event_queue.append(None) self.live = False - # Watchdog thread + # Watchdog thread -- there is a way to get this by using self.observer.emitters and checking for an attribute: + # watch, but that may have unforseen differences in behaviour. emitter = self.observed and self.observer._emitter_for_watch[self.observed] # Note: Uses undocumented attribute while True: