mirror of
https://github.com/avatao-content/baseimage-tutorial-framework
synced 2024-11-22 19:11:32 +00:00
Rename watchdog FileSystemEventHandler child
This commit is contained in:
parent
67579aea29
commit
955e1c1cf3
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user