subprocess module call
Medium
- Category
- Dangerous Code Execution
- Content
stderr_path.parent.mkdir(parents=True, exist_ok=True) with stdout_path.open("w", encoding="utf-8") as out_f, stderr_path.open("w", encoding="utf-8") as err_f: completed = subprocess.run( item["train_cmd"], shell=True, cwd=item["model_dir"],- Confidence
- 98% confidence
- Finding
- completed = subprocess.run( item["train_cmd"], shell=True, cwd=item["model_dir"], env=env, stdout=out_f,
