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

Method resolve_platform_urls

ci/compiler/platformio_ini.py:1992–2008  ·  view source on GitHub ↗

Resolve all platform shorthand names in the configuration to URLs. Returns: Dictionary mapping platform names to their resolved URLs.

(self)

Source from the content-addressed store, hash-verified

1990 return resolution
1991
1992 def resolve_platform_urls(self) -> dict[str, Optional[str]]:
1993 """
1994 Resolve all platform shorthand names in the configuration to URLs.
1995
1996 Returns:
1997 Dictionary mapping platform names to their resolved URLs.
1998 """
1999 resolutions: dict[str, Optional[str]] = {}
2000
2001 for section_name, option_name, platform_value in self.get_platform_urls():
2002 if platform_value and not self._is_url(platform_value):
2003 if platform_value not in resolutions:
2004 resolutions[platform_value] = self.resolve_platform_url(
2005 platform_value
2006 )
2007
2008 return resolutions
2009
2010 def resolve_framework_urls(self) -> dict[str, Optional[str]]:
2011 """

Calls 3

get_platform_urlsMethod · 0.95
_is_urlMethod · 0.95
resolve_platform_urlMethod · 0.95