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

Method _resolve_output_dir

ci/compiler/esp32_artifacts.py:343–360  ·  view source on GitHub ↗

Resolve output path to directory, making relative paths absolute.

(self, output_path: str)

Source from the content-addressed store, hash-verified

341 return copier.copy_for_qemu(output_dir, self.board_name)
342
343 def _resolve_output_dir(self, output_path: str) -> Path:
344 """Resolve output path to directory, making relative paths absolute."""
345 path = Path(output_path)
346
347 # Extract directory from the path
348 if output_path.endswith(".bin"):
349 dir_path = path.parent
350 else:
351 dir_path = path
352
353 # If path is relative, resolve it against project root
354 if not dir_path.is_absolute():
355 # build_dir is like: /fastled/.build/pio/esp32dev
356 # Project root is 3 levels up from build_dir
357 project_root = self.build_dir.parent.parent.parent
358 dir_path = project_root / dir_path
359
360 return dir_path

Callers 1

copy_qemu_artifactsMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected