This commit is contained in:
DingZQ
2025-06-02 18:57:41 +08:00
parent 320735bc85
commit 8ad9459459

View File

@@ -309,8 +309,8 @@ def run_project(name: str, readable_output: bool = False) -> str:
# 启动子进程 # 启动子进程
with subprocess.Popen( with subprocess.Popen(
command, command,
stdout=subprocess.STDOUT, stdout=subprocess.PIPE,
stderr=subprocess.STDOUT, # 合并错误输出和标准输出 stderr=subprocess.STDOUT, # 合并错误输出和标准输出
text=True, # 文本模式Python 3.7+ text=True, # 文本模式Python 3.7+
bufsize=1, # 行缓冲 bufsize=1, # 行缓冲
encoding='utf-8', # 编码设置 encoding='utf-8', # 编码设置