import subprocess, sys
result = subprocess.run(
    ["python", "-m", "playwright", "--version"],
    capture_output=True, text=True
)
print("playwright version:", result.stdout.strip())
print("stderr:", result.stderr.strip()[:200] if result.stderr else "none")
