From 2192073f21256ba30b2ba7e3797bd4651db3cd44 Mon Sep 17 00:00:00 2001 From: virusdefender Date: Thu, 29 Sep 2016 22:29:32 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=A0=E9=99=A4spj=E7=95=99=E4=B8=8B?= =?UTF-8?q?=E7=9A=84=E7=BC=96=E8=AF=91=E5=99=A8=E8=BE=93=E5=87=BA=E6=96=87?= =?UTF-8?q?=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- compiler.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/compiler.py b/compiler.py index ca0f4f7..b6c2ccd 100644 --- a/compiler.py +++ b/compiler.py @@ -41,6 +41,9 @@ class Compiler(object): if error: raise CompileError(error) + # 如果是spj的话, 不要在test_case文件夹中留下这个文件 + os.remove(compiler_out) + raise CompileError("Compiler runtime error, info: %s" % json.dumps(result).decode("utf-8")) return exe_path