mirror of
https://github.com/avatao-content/baseimage-tutorial-framework
synced 2024-11-22 20:51:32 +00:00
Expose DirectoryMonitor instance from SourceCodeEventHandler
This commit is contained in:
parent
e451de2179
commit
715e39af0d
@ -53,8 +53,12 @@ class SourceCodeEventHandler(TriggerlessEventHandler):
|
|||||||
'select': self.select
|
'select': self.select
|
||||||
}
|
}
|
||||||
|
|
||||||
self.monitor = DirectoryMonitor(directory)
|
self._monitor = DirectoryMonitor(directory)
|
||||||
self.monitor.watch() # This runs on a separate thread
|
self._monitor.watch() # This runs on a separate thread
|
||||||
|
|
||||||
|
@property
|
||||||
|
def monitor(self):
|
||||||
|
return self._monitor
|
||||||
|
|
||||||
def read(self, data):
|
def read(self, data):
|
||||||
try: data['content'] = self.filemanager.file_contents
|
try: data['content'] = self.filemanager.file_contents
|
||||||
|
Loading…
Reference in New Issue
Block a user