Abhishek Thakur commited on
Commit
258f500
·
1 Parent(s): 3c2410f
Files changed (1) hide show
  1. competitions/evaluate.py +2 -2
competitions/evaluate.py CHANGED
@@ -46,10 +46,10 @@ def generate_submission_file(params):
46
  # Copy sandbox to submission_dir
47
  shutil.copyfile("sandbox", f"{submission_dir}/sandbox")
48
  sandbox_path = f"{submission_dir}/sandbox"
49
- os.chmod(sandbox_path, 0o755)
50
 
51
  # Define your command
52
- cmd = "./sandbox python script.py"
53
  cmd = shlex.split(cmd)
54
 
55
  # Copy the current environment and modify it
 
46
  # Copy sandbox to submission_dir
47
  shutil.copyfile("sandbox", f"{submission_dir}/sandbox")
48
  sandbox_path = f"{submission_dir}/sandbox"
49
+ os.chown(sandbox_path, os.getuid(), os.getgid())
50
 
51
  # Define your command
52
+ cmd = f"{sandbox_path} python script.py"
53
  cmd = shlex.split(cmd)
54
 
55
  # Copy the current environment and modify it