修复运行日志复核发现的任务控制与结果误判

Browse Source
This commit is contained in:
yws
2026-10-22 00:55:35 +00:00
parent 4e5d63ac6c
commit 625fdcd250
12 changed files with 384 additions and 93 deletions
+2 -2
View File
@@ -33,9 +33,9 @@ BASE_W, BASE_H = 1600, 900
_scale = None _scale = None
def run(cmd): def run(cmd, *, check=False):
r = subprocess.run(cmd, capture_output=True, text=True, r = subprocess.run(cmd, capture_output=True, text=True,
encoding='utf-8', errors='replace', **NO_WINDOW) encoding='utf-8', errors='replace', check=check, **NO_WINDOW)
return (r.stdout or '') + (r.stderr or '') return (r.stdout or '') + (r.stderr or '')