all the compile information may change in background
(self)
| 90 | return os.path.join(self.root_path, ".compile") |
| 91 | |
| 92 | def reinit_compile_info(self): |
| 93 | """all the compile information may change in background""" |
| 94 | |
| 95 | # store use to save compile_datainfo. it will be reload when config changes. |
| 96 | self.store = {} # main-thread |
| 97 | self._compile_file = self.get_compile_file(self.config) |
| 98 | if os.path.exists(self._compile_file): |
| 99 | self.compile_file = self._compile_file |
| 100 | logger.info(f"use flags from {self._compile_file}") |
| 101 | else: |
| 102 | self.compile_file = None |
| 103 | |
| 104 | # self._compile_file may change. need to init mtime to avoid trigger a change event |
| 105 | self.observed_info[self._compile_file] = get_mtime(self._compile_file) |
| 106 | |
| 107 | @property |
| 108 | def indexStorePath(self) -> Optional[str]: |
no test coverage detected