Check if a command is available in PATH.
(cmd)
| 89 | |
| 90 | |
| 91 | def check_command(cmd): |
| 92 | """Check if a command is available in PATH.""" |
| 93 | return shutil.which(cmd) is not None |
| 94 | |
| 95 | |
| 96 | def run_command(cmd, cwd=None, check=True): |
no outgoing calls
no test coverage detected