Resolve the FastLED project root directory.
()
| 5 | |
| 6 | |
| 7 | def 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 | |
| 19 | class FastLEDPaths: |
no test coverage detected