()
| 23 | |
| 24 | |
| 25 | def 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 | |
| 36 | def get_driver_env() -> dict: |
no outgoing calls