linux which屏蔽输出内容

This commit is contained in:
Jerry Yan 2022-07-04 10:33:34 +08:00
parent e6a0435b97
commit 9bf7cffed2

View File

@ -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: