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

Function _replace_all_urls

ci/compiler/platformio_cache.py:978–993  ·  view source on GitHub ↗

Replace all URLs in platformio.ini with their resolved local paths.

(
    pio_ini: PlatformIOIni,
    all_urls: list[ZipUrlInfo],
    replacements: dict[str, str],
)

Source from the content-addressed store, hash-verified

976
977
978def _replace_all_urls(
979 pio_ini: PlatformIOIni,
980 all_urls: list[ZipUrlInfo],
981 replacements: dict[str, str],
982) -> None:
983 """
984 Replace all URLs in platformio.ini with their resolved local paths.
985 """
986 for url_info in all_urls:
987 if url_info.url in replacements:
988 pio_ini.replace_url(
989 url_info.section_name,
990 url_info.option_name,
991 url_info.url,
992 replacements[url_info.url],
993 )
994
995
996def _apply_board_specific_config(

Callers 1

Calls 1

replace_urlMethod · 0.80

Tested by

no test coverage detected