MCPcopy Index your code
hub / github.com/microsoft/playwright-python / compute_driver_executable

Function compute_driver_executable

playwright/_impl/_driver.py:25–33  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

23
24
25def compute_driver_executable() -> Tuple[str, str]:
26 driver_path = Path(inspect.getfile(playwright)).parent / "driver"
27 cli_path = str(driver_path / "package" / "cli.js")
28 if sys.platform == "win32":
29 return (
30 os.getenv("PLAYWRIGHT_NODEJS_PATH", str(driver_path / "node.exe")),
31 cli_path,
32 )
33 return (os.getenv("PLAYWRIGHT_NODEJS_PATH", str(driver_path / "node")), cli_path)
34
35
36def get_driver_env() -> dict:

Callers 4

mainFunction · 0.90
connectMethod · 0.90
_show_trace_viewerFunction · 0.90
_show_trace_viewerFunction · 0.90

Calls

no outgoing calls

Tested by 2

_show_trace_viewerFunction · 0.72
_show_trace_viewerFunction · 0.72