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

Function _get_project_root

ci/compiler/board_example_utils.py:14–25  ·  view source on GitHub ↗

Get the FastLED project root, handling both native and Docker environments. Returns: Path to the FastLED project root directory

()

Source from the content-addressed store, hash-verified

12
13
14def _get_project_root() -> Path:
15 """Get the FastLED project root, handling both native and Docker environments.
16
17 Returns:
18 Path to the FastLED project root directory
19 """
20 # Detect if running inside Docker container
21 if os.environ.get("FASTLED_DOCKER") == "1":
22 return Path("/fastled")
23 else:
24 # Assume we're in ci/compiler/, go up two levels to project root
25 return Path(__file__).parent.parent.parent.resolve()
26
27
28def get_default_boards() -> list[str]:

Callers 3

get_all_examplesFunction · 0.70
resolve_example_pathFunction · 0.70
get_example_ino_pathFunction · 0.70

Calls 2

getMethod · 0.45
resolveMethod · 0.45

Tested by

no test coverage detected