MCPcopy Create free account
hub / github.com/FastLED/FastLED / install_playwright_browsers

Function install_playwright_browsers

ci/wasm_test.py:45–58  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

43
44# Ensure Playwright browsers are installed
45def install_playwright_browsers():
46 console.print("[dim]Installing Playwright browsers...[/dim]")
47 try:
48 # Simulate the `playwright install` command
49 os.system(f"{sys.executable} -m playwright install chromium")
50 console.print("[dim]Playwright browsers ready.[/dim]")
51 except KeyboardInterrupt as ki:
52 handle_keyboard_interrupt(ki)
53 raise
54 except Exception as e:
55 console.print(
56 f"[bold red]Failed to install Playwright browsers:[/bold red] {e}"
57 )
58 sys.exit(1)
59
60
61def _find_free_port(start: int = 9123) -> int:

Callers 1

mainFunction · 0.70

Calls 2

printMethod · 0.45

Tested by

no test coverage detected