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

Function resolve_project_root

ci/compiler/path_manager.py:7–16  ·  view source on GitHub ↗

Resolve the FastLED project root directory.

()

Source from the content-addressed store, hash-verified

5
6
7def resolve_project_root() -> Path:
8 """Resolve the FastLED project root directory."""
9 current = Path(
10 __file__
11 ).parent.parent.parent.resolve() # Go up from ci/compiler/path_manager.py
12 while current != current.parent:
13 if (current / "src" / "FastLED.h").exists():
14 return current
15 current = current.parent
16 raise RuntimeError("Could not find FastLED project root")
17
18
19class FastLEDPaths:

Callers 5

_get_project_rootFunction · 0.90
_init_platformio_buildFunction · 0.90
_build_fbuild_syncMethod · 0.90
_build_internalMethod · 0.90
__init__Method · 0.85

Calls 1

resolveMethod · 0.45

Tested by

no test coverage detected