subprocess module call
Medium
- Category
- Dangerous Code Execution
- Content
subprocess.run(["python3", "-m", "venv", str(venv_dir)], check=True) pip = venv_dir / "bin" / "pip" req = Path(__file__).resolve().parents[1] / "requirements.txt" subprocess.run([str(pip), "install", "--quiet", "-r", str(req)], check=True) return str(py)- Confidence
- 77% confidence
- Finding
- subprocess.run([str(pip), "install", "--quiet", "-r", str(req)], check=True)
