MCPcopy Create free account
hub / github.com/OpenDCAI/Paper2Any / _resolve_existing_output_path

Function _resolve_existing_output_path

script/paper2poster_worker.py:20–29  ·  view source on GitHub ↗
(path_value: str)

Source from the content-addressed store, hash-verified

18
19
20def _resolve_existing_output_path(path_value: str) -> str:
21 raw = (path_value or "").strip()
22 if not raw:
23 return ""
24
25 candidate = Path(raw).expanduser()
26 if not candidate.is_absolute():
27 candidate = (Path(__file__).resolve().parent.parent / candidate).resolve()
28
29 return str(candidate) if candidate.is_file() else ""
30
31
32def _build_worker_result(output_pptx_path: str, output_png_path: str, errors: list[str]) -> dict:

Callers 1

_build_worker_resultFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected