Added pypy support
This commit is contained in:
parent
3a7e2f2af8
commit
5af72b4f99
7
ucompile
7
ucompile
@ -122,6 +122,13 @@ def run_input_cases(program, args):
|
|||||||
|
|
||||||
|
|
||||||
def python_compile(file_name, args):
|
def python_compile(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)
|
run_input_cases("python3 " + file_name, args)
|
||||||
return
|
return
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user