def setup_filewatcher_thread(): fw = FileWatcher(path=cagibi_folder) fw.addHandler(push_filewatcher_changes) fw.watch()