@@ -367,8 +367,8 @@ def run_medslik_sim(self, simdir, simname, separate_slicks=False):
367367 # Compile and start running (replacing `cd` with `cwd`)
368368 compile_script = "MODEL_SRC/compile.sh"
369369 run_script = "RUN.sh"
370- subprocess .run (["sh" , compile_script ], check = True , cwd = os .path .join (model_dir , "RUN" ))
371- subprocess .run (["./" + run_script ], check = True , cwd = os .path .join (model_dir , "RUN" ))
370+ subprocess .run (["sh" , compile_script ], check = True , cwd = os .path .join (model_dir , "RUN" )) # nosec
371+ subprocess .run (["./" + run_script ], check = True , cwd = os .path .join (model_dir , "RUN" )) # nosec
372372
373373 else :
374374 # Handle separate slicks
@@ -391,8 +391,8 @@ def run_medslik_sim(self, simdir, simname, separate_slicks=False):
391391 # Compile and start running
392392 compile_script = "MODEL_SRC/compile.sh"
393393 run_script = "RUN.sh"
394- subprocess .run (["sh" , compile_script ], check = True , cwd = os .path .join (model_dir , "RUN" ))
395- subprocess .run (["./" + run_script ], check = True , cwd = os .path .join (model_dir , "RUN" ))
394+ subprocess .run (["sh" , compile_script ], check = True , cwd = os .path .join (model_dir , "RUN" )) # nosec
395+ subprocess .run (["./" + run_script ], check = True , cwd = os .path .join (model_dir , "RUN" )) # nosec
396396
397397 # Copy output files (replacing `cp -r`)
398398 output_dest = os .path .join (simdir , simname , "out_files" )
0 commit comments