linux which屏蔽输出内容
This commit is contained in:
parent
e6a0435b97
commit
9bf7cffed2
@ -14,7 +14,7 @@ def check_exec(name: Union[os.PathLike[str], str]) -> bool:
|
||||
elif is_linux():
|
||||
check_process = subprocess.Popen([
|
||||
"which", name
|
||||
])
|
||||
], stdout=subprocess.PIPE)
|
||||
check_process.wait()
|
||||
return check_process.returncode == 0
|
||||
else:
|
||||
|
Loading…
x
Reference in New Issue
Block a user