Spaces:
Runtime error
Runtime error
Muennighoff
commited on
Commit
•
78bd677
1
Parent(s):
4df2f12
Remove tmp_dir
Browse files- execute.py +1 -1
execute.py
CHANGED
@@ -156,7 +156,7 @@ def unsafe_execute_java(check_program, result, timeout):
|
|
156 |
res = "failed: compilation error"
|
157 |
else:
|
158 |
try:
|
159 |
-
exec_result = subprocess.run([f'java', '-cp',
|
160 |
if exec_result.returncode == 0:
|
161 |
res = "passed"
|
162 |
elif exec_result.returncode == 1:
|
|
|
156 |
res = "failed: compilation error"
|
157 |
else:
|
158 |
try:
|
159 |
+
exec_result = subprocess.run([f'java', '-cp', '.', 'Main'], timeout=timeout, capture_output=True)
|
160 |
if exec_result.returncode == 0:
|
161 |
res = "passed"
|
162 |
elif exec_result.returncode == 1:
|