Added pypy support
This commit is contained in:
9
ucompile
9
ucompile
@ -122,7 +122,14 @@ def run_input_cases(program, args):
|
|||||||
|
|
||||||
|
|
||||||
def python_compile(file_name, args):
|
def python_compile(file_name, args):
|
||||||
run_input_cases("python3 " + file_name, args)
|
try:
|
||||||
|
if subprocess.run(["which", "pypy3"]).returncode == 0:
|
||||||
|
run_input_cases("pypy3 " + file_name, args)
|
||||||
|
return
|
||||||
|
except Exception:
|
||||||
|
pass
|
||||||
|
finally:
|
||||||
|
run_input_cases("python3 " + file_name, args)
|
||||||
return
|
return
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user