subprocess module call
Medium
- Category
- Dangerous Code Execution
- Content
req = Path(__file__).resolve().parent / "requirements.txt" if not req.exists(): raise RuntimeError(f"未找到依赖文件: {req}") subprocess.check_call([sys.executable, "-m", "pip", "install", "-r", str(req)]) def slugify(text: str) -> str:- Confidence
- 90% confidence
- Finding
- subprocess.check_call([sys.executable, "-m", "pip", "install", "-r", str(req)])
