From a5eee6d960aa3f27ca48d1e7b283e935a7a4460c Mon Sep 17 00:00:00 2001 From: Max Schmitt Date: Mon, 26 Sep 2022 19:19:04 +0200 Subject: [PATCH] fix(driver): with CWD which contained spaces (#17579) Fixes https://github.com/microsoft/playwright-python/issues/1561 Fixes https://github.com/microsoft/playwright-python/issues/1565 --- utils/build/run-driver-win.cmd | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/utils/build/run-driver-win.cmd b/utils/build/run-driver-win.cmd index 007cac8a70..3e52e50fcc 100755 --- a/utils/build/run-driver-win.cmd +++ b/utils/build/run-driver-win.cmd @@ -1,4 +1,6 @@ -@ECHO OFF -SETLOCAL -IF %PLAYWRIGHT_NODEJS_PATH%x == x SET PLAYWRIGHT_NODEJS_PATH="%~dp0\node.exe" -"%PLAYWRIGHT_NODEJS_PATH%" "%~dp0\package\lib\cli\cli.js" %* +@echo off +setlocal +if not defined PLAYWRIGHT_NODEJS_PATH ( + set PLAYWRIGHT_NODEJS_PATH=%~dp0\node.exe +) +"""%PLAYWRIGHT_NODEJS_PATH%""" "%~dp0\package\lib\cli\cli.js" %*