MCPcopy Create free account
hub / github.com/PaddlePaddle/FastDeploy / get_windows_version

Function get_windows_version

fastdeploy/collect_env.py:424–428  ·  view source on GitHub ↗
(run_lambda)

Source from the content-addressed store, hash-verified

422
423
424def get_windows_version(run_lambda):
425 system_root = os.environ.get("SYSTEMROOT", "C:\\Windows")
426 wmic_cmd = os.path.join(system_root, "System32", "Wbem", "wmic")
427 findstr_cmd = os.path.join(system_root, "System32", "findstr")
428 return run_and_read_all(run_lambda, "{} os get Caption | {} /v Caption".format(wmic_cmd, findstr_cmd))
429
430
431def get_lsb_version(run_lambda):

Callers 1

get_osFunction · 0.85

Calls 4

run_and_read_allFunction · 0.85
joinMethod · 0.80
getMethod · 0.45
formatMethod · 0.45

Tested by

no test coverage detected