From 9bf7cffed2d0cdbe2d1c6c47568f85f2f6120ab3 Mon Sep 17 00:00:00 2001 From: Jerry Yan <792602257@qq.com> Date: Mon, 4 Jul 2022 10:33:34 +0800 Subject: [PATCH] =?UTF-8?q?linux=20which=E5=B1=8F=E8=94=BD=E8=BE=93?= =?UTF-8?q?=E5=87=BA=E5=86=85=E5=AE=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- util/system.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util/system.py b/util/system.py index 5c9be07..edd887e 100644 --- a/util/system.py +++ b/util/system.py @@ -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: