mirror of
https://github.com/avatao-content/baseimage-tutorial-framework
synced 2024-11-14 21:57:17 +00:00
17 lines
364 B
Python
17 lines
364 B
Python
|
# Copyright (C) 2018 Avatao.com Innovative Learning Kft.
|
||
|
# All Rights Reserved. See LICENSE file for details.
|
||
|
|
||
|
from watchdog.observers import Observer
|
||
|
|
||
|
|
||
|
class ObserverMixin:
|
||
|
def __init__(self):
|
||
|
self.observer = Observer()
|
||
|
|
||
|
def watch(self):
|
||
|
self.observer.start()
|
||
|
|
||
|
def stop(self):
|
||
|
self.observer.stop()
|
||
|
self.observer.join()
|