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
This commit is contained in:
Max Schmitt 2022-09-26 19:19:04 +02:00 committed by GitHub
parent f5d7089819
commit a5eee6d960
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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" %*