From 7b0aa5be64c479fee5144479fbbb2cc9dbd7dc99 Mon Sep 17 00:00:00 2001 From: Kevin-lou Date: Sun, 17 Mar 2024 19:21:23 +0800 Subject: [PATCH] =?UTF-8?q?Fix=20the=20list=20file=20directory=20error.?= =?UTF-8?q?=E4=BF=AE=E5=A4=8Dlist=E6=96=87=E4=BB=B6=E7=9B=AE=E5=BD=95?= =?UTF-8?q?=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- webui.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webui.py b/webui.py index c88bcba2..cd150d31 100644 --- a/webui.py +++ b/webui.py @@ -671,7 +671,7 @@ def close1abc(): return "已终止所有一键三连进程", {"__type__": "update", "visible": True}, {"__type__": "update", "visible": False} def select_list(): - list_files = [f for f in os.listdir("output/asr_opt/") if f.endswith('.list')] + list_files = [r"output/asr_opt/" + f for f in os.listdir("output/asr_opt/") if f.endswith('.list')] if len(list_files) == 0: return ["无可用列表文件,请先生成列表文件"] return list_files