(self, path: str)
| 223 | ) |
| 224 | |
| 225 | def mark_config_used(self, path: str) -> None: |
| 226 | if self.readonly: # pragma: win32 no cover |
| 227 | return |
| 228 | path = os.path.realpath(path) |
| 229 | # don't insert config files that do not exist |
| 230 | if not os.path.exists(path): |
| 231 | return |
| 232 | with self.connect() as db: |
| 233 | # TODO: eventually remove this and only create in _create |
| 234 | self._create_configs_table(db) |
| 235 | db.execute('INSERT OR IGNORE INTO configs VALUES (?)', (path,)) |