MCPcopy Create free account
hub / github.com/CommonstackAI/UncommonRoute / _output_path

Function _output_path

uncommon_route/support.py:34–41  ·  view source on GitHub ↗
(output_path: str | None)

Source from the content-addressed store, hash-verified

32
33
34def _output_path(output_path: str | None) -> Path:
35 if output_path:
36 path = Path(output_path).expanduser()
37 if path.suffix.lower() != ".zip":
38 path = path.with_suffix(".zip")
39 path.parent.mkdir(parents=True, exist_ok=True, mode=0o700)
40 return path
41 return _support_dir() / f"uncommon-route-support-{_now_stamp()}.zip"
42
43
44def _package_version() -> str:

Callers 1

build_support_bundleFunction · 0.85

Calls 2

_support_dirFunction · 0.85
_now_stampFunction · 0.85

Tested by

no test coverage detected