MCPcopy Create free account
hub / github.com/MeshInspector/MeshLib / detect_vcpkg_python_version

Function detect_vcpkg_python_version

scripts/run_python_test_script.py:19–27  ·  view source on GitHub ↗
(vcpkg_root, triplet="x64-windows-meshlib")

Source from the content-addressed store, hash-verified

17 return None
18
19def detect_vcpkg_python_version(vcpkg_root, triplet="x64-windows-meshlib"):
20 include_dir = vcpkg_root / "installed" / triplet / "include"
21 if include_dir.exists():
22 for entry in include_dir.iterdir():
23 match = re.match(r"python3\.(\d+)", entry.name)
24 if match:
25 minor_version = match.group(1)
26 return f"3.{minor_version}"
27 return None
28
29parser = argparse.ArgumentParser(description="Python Test Script")
30

Callers 1

Calls 1

matchMethod · 0.80

Tested by

no test coverage detected