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

Function msi_version

scripts/finalize_windows_dist.py:53–59  ·  view source on GitHub ↗
(raw: str)

Source from the content-addressed store, hash-verified

51
52
53def msi_version(raw: str) -> str:
54 # Mirror scripts/update_installer.py / generate_manifest.py - artifact
55 # filenames use the normalized X.Y.Z form, not the Python __version__.
56 parts = [re.split(r"[^\d]", p, maxsplit=1)[0] for p in raw.split(".")]
57 while len(parts) < 3:
58 parts.append("0")
59 return ".".join(parts[:4])
60
61
62VERSION = msi_version(scenedetect.__version__)

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected