(keep_backup: bool)
| 173 | |
| 174 | |
| 175 | def restore_platformio_ini(keep_backup: bool) -> None: |
| 176 | if PLATFORMIO_INI_BACKUP.is_file(): |
| 177 | shutil.copyfile(PLATFORMIO_INI_BACKUP, PLATFORMIO_INI) |
| 178 | if not keep_backup: |
| 179 | PLATFORMIO_INI_BACKUP.unlink() |
| 180 | |
| 181 | |
| 182 | def patch_platformio_ini(cfg: OptInConfig) -> None: |
no test coverage detected