Skip to content

Commit a00d636

Browse files
fix(driver): consider PLAYWRIGHT_NODEJS_PATH from host env win32 (#2462)
1 parent 47c1bc1 commit a00d636

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

playwright/_impl/_driver.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,10 @@ def compute_driver_executable() -> Tuple[str, str]:
2626
driver_path = Path(inspect.getfile(playwright)).parent / "driver"
2727
cli_path = str(driver_path / "package" / "cli.js")
2828
if sys.platform == "win32":
29-
return (str(driver_path / "node.exe"), cli_path)
29+
return (
30+
os.getenv("PLAYWRIGHT_NODEJS_PATH", str(driver_path / "node.exe")),
31+
cli_path,
32+
)
3033
return (os.getenv("PLAYWRIGHT_NODEJS_PATH", str(driver_path / "node")), cli_path)
3134

3235

0 commit comments

Comments
 (0)