Get the FastLED project root, handling both native and Docker environments. Returns: Path to the FastLED project root directory
()
| 12 | |
| 13 | |
| 14 | def _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 | |
| 28 | def get_default_boards() -> list[str]: |
no test coverage detected