bundles / papyri latest / papyri / cli / debug / _resolve_debug_path
function
papyri.cli.debug:_resolve_debug_path
source: /papyri/cli/debug.py :24
Signature
def _resolve_debug_path ( raw : str , data_dir : Path ) → Path | None Summary
Return the resolved Path for raw, trying several strategies:
Extended Summary
Use raw directly if it points to an existing file.
Append '.cbor' or '.papyri' if the result exists.
Treat raw as a path relative to data_dir, with the same suffix fallbacks.
Aliases
-
papyri.cli.debug._resolve_debug_path