diff --git a/judge/spj_client.py b/judge/spj_client.py index 35adb05a..5e24aba1 100644 --- a/judge/spj_client.py +++ b/judge/spj_client.py @@ -13,7 +13,7 @@ def file_exists(path): def spj(path, max_cpu_time, max_memory, in_path, user_out_path): if file_exists(in_path) and file_exists(user_out_path): - result = judger.run(path=path, in_file="/dev/null", out_file="/dev/null", + result = judger.run(path=path, in_file=in_path, out_file="/tmp/spj.out", max_cpu_time=max_cpu_time, max_memory=max_memory, args=[in_path, user_out_path], env=["PATH=" + os.environ.get("PATH", "")], use_sandbox=True, use_nobody=True)