MCPcopy Create free account
hub / github.com/FastLED/FastLED / restore_platformio_ini

Function restore_platformio_ini

tests/measure_esp32s3_opt_ins.py:175–179  ·  view source on GitHub ↗
(keep_backup: bool)

Source from the content-addressed store, hash-verified

173
174
175def 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
182def patch_platformio_ini(cfg: OptInConfig) -> None:

Callers 3

measure_oneFunction · 0.85
_restore_and_exitFunction · 0.85
mainFunction · 0.85

Calls 1

unlinkMethod · 0.80

Tested by

no test coverage detected