subprocess module call
Medium
- Category
- Dangerous Code Execution
- Content
if not pip_path.exists(): raise RuntimeError("虚拟环境创建失败") requirements = base_dir / "requirements.txt" subprocess.check_call([str(pip_path), "install", "-r", str(requirements)]) env = os.environ.copy() env["FUTU_SKILL_VENV"] = "1" subprocess.check_call([str(python_path), str(Path(__file__).resolve()), *sys.argv[1:]], env=env)- Confidence
- 95% confidence
- Finding
- subprocess.check_call([str(pip_path), "install", "-r", str(requirements)])
