Muennighoff commited on
Commit
78bd677
1 Parent(s): 4df2f12

Remove tmp_dir

Browse files
Files changed (1) hide show
  1. 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', tmp_dir, 'Main'], timeout=timeout, capture_output=True)
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: