Added pypy support
This commit is contained in:
parent
3a7e2f2af8
commit
5af72b4f99
9
ucompile
9
ucompile
@ -122,7 +122,14 @@ def run_input_cases(program, 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
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user