def run(self):
self.run_plugins()<EOL>while True:<EOL><INDENT>if self._config_mod_time != os.path.getmtime(self._config_file_path) orself._plugin_mod_time != os.path.getmtime(self._plugin_path):<EOL><INDENT>self.thread_manager.kill_all_threads()<EOL>self.output_dict.clear()<EOL>self.reload()<EOL>self.run_plugins()<EOL><DEDENT>self.output_to_bar(json.dumps(self._remove_empty_output()))<EOL>time.sleep(self.config.general['<STR_LIT>'])<EOL><DEDENT>
Monitors if the config file or plugins are updated. Also outputs the
JSON data generated by the plugins, without needing to poll the threads.