AhsanRazi's picture
Update setup.py
9badf97 verified
raw
history blame
336 Bytes
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())