remove hardcoded paths when nsjail is disabled

This commit is contained in:
Ruben Fiszel
2022-08-15 10:08:40 +02:00
parent ae3e703df8
commit 8a643b2209
+3 -3
View File
@@ -553,7 +553,7 @@ async fn handle_nondep_job(
.stderr(Stdio::piped())
.spawn()?
} else {
Command::new("/usr/local/bin/python3")
Command::new("python3")
.current_dir(job_dir)
.args(vec![
"-m",
@@ -704,7 +704,7 @@ print(res_json)
.stderr(Stdio::piped())
.spawn()?
} else {
Command::new("/usr/local/bin/python3")
Command::new("python3")
.current_dir(job_dir)
.env_clear()
.envs(reserved_variables)
@@ -827,7 +827,7 @@ run();
.stderr(Stdio::piped())
.spawn()?
} else {
Command::new("/usr/bin/deno")
Command::new("deno")
.current_dir(job_dir)
.env_clear()
.envs(reserved_variables)