def reload(self):
        self.config = load_yaml(self.config_file)
        self.file_list = {}
        for target, sources in self.config.items():
            target_file = os.path.join(self.root_path, target)
            self.file_list[target_file] = target
            for source in sources:
                self.file_list[os.path.join(self.root_path, source)] = target
        log.info('-'*80)
        log.info('load css js build config')
        # use new process run long time job, Otherwise Observer process well interrupt.
        new_process = Process(target=self._build_css_js, args=(self.config,), daemon=False)
        new_process.start()
Call while config file changed
dataset/ETHPy150Open remyzane/flask-http-api/http_api/assist/coding.py/BuildCssJsProcessor.reload