mirror of
https://github.com/avatao-content/baseimage-tutorial-framework
synced 2024-11-23 00:31:31 +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__)
|
log = logging.getLogger(__name__)
|
||||||
|
|
||||||
|
|
||||||
class MessagingEventHandler(FileSystemEventHandler):
|
class WebideReloadEventHandler(FileSystemEventHandler):
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
super().__init__()
|
super().__init__()
|
||||||
self.uplink = ServerUplinkConnector()
|
self.uplink = ServerUplinkConnector()
|
||||||
@ -22,7 +22,7 @@ class MessagingEventHandler(FileSystemEventHandler):
|
|||||||
class DirectoryMonitor:
|
class DirectoryMonitor:
|
||||||
def __init__(self, directory):
|
def __init__(self, directory):
|
||||||
self.observer = Observer()
|
self.observer = Observer()
|
||||||
self.observer.schedule(MessagingEventHandler(), directory, recursive=True)
|
self.observer.schedule(WebideReloadEventHandler(), directory, recursive=True)
|
||||||
|
|
||||||
def watch(self):
|
def watch(self):
|
||||||
self.observer.start()
|
self.observer.start()
|
||||||
|
Loading…
Reference in New Issue
Block a user