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

Method _normalize_path

ci/perf/compile_perf.py:144–150  ·  view source on GitHub ↗

Normalize path for comparison (handle Windows/Unix paths).

(self, path: str)

Source from the content-addressed store, hash-verified

142 return result
143
144 def _normalize_path(self, path: str) -> str:
145 """Normalize path for comparison (handle Windows/Unix paths)."""
146 # Remove drive letters and normalize separators
147 path = path.replace("\\", "/")
148 if len(path) > 2 and path[1] == ":":
149 path = path[2:]
150 return path
151
152 def _extract_header_name(self, path: str) -> str:
153 """Extract just the header filename or relative path within project."""

Callers 2

_extract_header_nameMethod · 0.95
get_fastled_headersMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected