subprocess module call
Medium
- Category
- Dangerous Code Execution
- Content
print("LibreOffice/soffice not found. Attempting automatic install...", file=sys.stderr) for command in commands: result = subprocess.run(command, check=False) if result.returncode != 0: raise RuntimeError(f"automatic LibreOffice install failed while running: {' '.join(command)}")- Confidence
- 97% confidence
- Finding
- result = subprocess.run(command, check=False)
