Sign in
◑
Theme
kernel
/
pub
/
scm
/
linux
/
kernel
/
git
/
sj
/
hkml
/
HEAD
/
.
/
src
/
_hkml_subproc.py
blob: cffa2f08b21f24dd5905e9edd9960136274b2901 [
file
]
# SPDX-License-Identifier: GPL-2.0
# Common subprocess usage helpers
import
subprocess
def
cmd_available
(
cmd
):
try
:
subprocess
.
check_output
([
'which'
,
cmd
],
stderr
=
subprocess
.
DEVNULL
)
return
True
except
:
return
False