MCPcopy Index your code
hub / github.com/Breakthrough/PySceneDetect / find_7zip

Function find_7zip

scripts/finalize_windows_dist.py:65–75  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

63
64
65def find_7zip() -> Path:
66 for candidate in (
67 Path(r"C:\Program Files\7-Zip\7z.exe"),
68 Path(r"C:\Program Files (x86)\7-Zip\7z.exe"),
69 ):
70 if candidate.exists():
71 return candidate
72 on_path = shutil.which("7z") or shutil.which("7z.exe")
73 if on_path:
74 return Path(on_path)
75 sys.exit("7-Zip not found. Install from https://www.7-zip.org/.")
76
77
78def sha256_file(path: Path) -> str:

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected