Sign in
kernel
/
pub
/
scm
/
linux
/
kernel
/
git
/
sj
/
damo.git
/
HEAD
/
.
/
src
/
_damo_subproc.py
blob: e965ad4978a2e84e1730c77d6e26e0c8e1d5ea01 [
file
] [
log
] [
blame
]
# SPDX-License-Identifier: GPL-2.0
import
subprocess
def
avail_cmd
(
cmd
):
try
:
subprocess
.
check_output
([
'which'
,
cmd
],
stderr
=
subprocess
.
DEVNULL
)
return
True
except
:
return
False