From 3b69599ab1a97e0dd30c515a96ca2ad1f11dd7be Mon Sep 17 00:00:00 2001 From: liyitian <2717355959@qq.com> Date: Sun, 14 Dec 2025 19:36:46 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A7=BB=E9=99=A4=E7=A1=AC=E7=BC=96=E7=A0=81?= =?UTF-8?q?=E8=B7=AF=E5=BE=84=EF=BC=8C=E4=BD=BF=E7=94=A8=E5=91=BD=E4=BB=A4?= =?UTF-8?q?=E8=A1=8C=E4=BC=A0=E5=85=A5=E7=9A=84=E5=8F=82=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- autograde/grade_grouped.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/autograde/grade_grouped.py b/autograde/grade_grouped.py index 2141250..cf1569e 100644 --- a/autograde/grade_grouped.py +++ b/autograde/grade_grouped.py @@ -24,8 +24,7 @@ def parse_args(): def load_test_groups(groups_file: str) -> Dict[str, Dict[str, any]]: """加载测试分组配置""" - # 直接写死文件在容器里的绝对路径(修正了项目名中的数字错误) - groups_file = "/workspace/liyitian/2311061111-lyt/autograde/test_groups.json" + # 使用命令行传入的文件路径 with open(groups_file, 'r', encoding='utf-8') as f: return json.load(f)