(run_lambda)
| 422 | |
| 423 | |
| 424 | def 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 | |
| 431 | def get_lsb_version(run_lambda): |
no test coverage detected