subprocess module call
Medium
- Category
- Dangerous Code Execution
- Content
def install_package(package: str) -> bool: """Install a Python package.""" try: result = subprocess.run( [sys.executable, "-m", "pip", "install", package], capture_output=True, text=True,- Confidence
- 92% confidence
- Finding
- result = subprocess.run( [sys.executable, "-m", "pip", "install", package], capture_output=True, text=True, )
