def __init__(self, translator, options, *args, **kwargs): super(MooseDocsWatcher, self).__init__(*args, **kwargs) self._options = options self._translator = translator self._config = yaml_load(options.config, root=MooseDocs.ROOT_DIR) # Determine the directories to watch roots = set() self._items = common.get_items(self._config.get('Content')) for root, _ in common.get_files(self._items, self._translator.reader.EXTENSIONS): roots.add(root) for root in roots: self.watch(root, self.build, delay=1)