Abhishek Thakur
commited on
Commit
·
3c2410f
1
Parent(s):
63c87ec
fix sandbox permissions
Browse files- competitions/evaluate.py +2 -0
competitions/evaluate.py
CHANGED
|
@@ -45,6 +45,8 @@ def generate_submission_file(params):
|
|
| 45 |
|
| 46 |
# Copy sandbox to submission_dir
|
| 47 |
shutil.copyfile("sandbox", f"{submission_dir}/sandbox")
|
|
|
|
|
|
|
| 48 |
|
| 49 |
# Define your command
|
| 50 |
cmd = "./sandbox python script.py"
|
|
|
|
| 45 |
|
| 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"
|