Rename watchdog FileSystemEventHandler child

This commit is contained in:
Kristóf Tóth 2018-02-12 17:01:23 +01:00
parent 67579aea29
commit 955e1c1cf3

View File

@ -7,7 +7,7 @@ from tfw.config.logs import logging
log = logging.getLogger(__name__)
class MessagingEventHandler(FileSystemEventHandler):
class WebideReloadEventHandler(FileSystemEventHandler):
def __init__(self):
super().__init__()
self.uplink = ServerUplinkConnector()
@ -22,7 +22,7 @@ class MessagingEventHandler(FileSystemEventHandler):
class DirectoryMonitor:
def __init__(self, directory):
self.observer = Observer()
self.observer.schedule(MessagingEventHandler(), directory, recursive=True)
self.observer.schedule(WebideReloadEventHandler(), directory, recursive=True)
def watch(self):
self.observer.start()