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

Function backup_platformio_ini

tests/measure_esp32s3_opt_ins.py:165–172  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

163
164
165def backup_platformio_ini() -> None:
166 if not PLATFORMIO_INI.is_file():
167 print(
168 f"measure-opt-ins: platformio.ini not found at {PLATFORMIO_INI}",
169 file=sys.stderr,
170 )
171 sys.exit(2)
172 shutil.copyfile(PLATFORMIO_INI, PLATFORMIO_INI_BACKUP)
173
174
175def restore_platformio_ini(keep_backup: bool) -> None:

Callers 1

mainFunction · 0.85

Calls 1

printFunction · 0.50

Tested by

no test coverage detected