| import asyncio | |
| from playwright.async_api import async_playwright | |
| async def install_browsers(): | |
| async with async_playwright() as p: | |
| await p.install() | |
| # Run the installer during setup | |
| if sys.platform == "win32": | |
| asyncio.set_event_loop_policy(asyncio.WindowsProactorEventLoopPolicy()) | |
| asyncio.run(install_browsers()) | |