subprocess module call
Medium
- Category
- Dangerous Code Execution
- Content
def ensure_deps(): if importlib.util.find_spec("pypdf") is None: import subprocess subprocess.check_call( [sys.executable, "-m", "pip", "install", "--break-system-packages", "-q", "pypdf"] )- Confidence
- 94% confidence
- Finding
- subprocess.check_call( [sys.executable, "-m", "pip", "install", "--break-system-packages", "-q", "pypdf"] )
