File size: 336 Bytes
6552629
 
 
 
 
 
 
 
9badf97
 
6552629
1
2
3
4
5
6
7
8
9
10
11
12
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())