1
0
mirror of synced 2026-05-22 18:53:15 +00:00

fix(driver): consider PLAYWRIGHT_NODEJS_PATH from host env (#1552)

This commit is contained in:
Max Schmitt
2024-04-16 19:54:15 +02:00
committed by GitHub
parent 2829a37d58
commit 8652942482
@@ -18,7 +18,6 @@ package com.microsoft.playwright.impl.driver;
import java.nio.file.Path; import java.nio.file.Path;
import java.nio.file.Paths; import java.nio.file.Paths;
import java.util.HashMap;
import java.util.LinkedHashMap; import java.util.LinkedHashMap;
import java.util.Map; import java.util.Map;
@@ -30,7 +29,7 @@ import static com.microsoft.playwright.impl.driver.DriverLogging.logWithTimestam
* loaded from the driver-bundle module if that module is in the classpath. * loaded from the driver-bundle module if that module is in the classpath.
*/ */
public abstract class Driver { public abstract class Driver {
protected final Map<String, String> env = new LinkedHashMap<>(); protected final Map<String, String> env = new LinkedHashMap<>(System.getenv());
public static final String PLAYWRIGHT_NODEJS_PATH = "PLAYWRIGHT_NODEJS_PATH"; public static final String PLAYWRIGHT_NODEJS_PATH = "PLAYWRIGHT_NODEJS_PATH";
private static Driver instance; private static Driver instance;