Skip to content

fix(driver): with CWD which contained spaces#17579

Merged
mxschmitt merged 2 commits into
mainfrom
mxschmitt/bugfix-driver-spaces
Sep 26, 2022
Merged

fix(driver): with CWD which contained spaces#17579
mxschmitt merged 2 commits into
mainfrom
mxschmitt/bugfix-driver-spaces

Conversation

@mxschmitt
Copy link
Copy Markdown
Contributor

Did manual testing on my Windows machine to verify that it works in a folder with spaces. Also passing a custom Node.js path seemed to not have worked before.

Fixes microsoft/playwright-python#1561
Fixes microsoft/playwright-python#1565

@mxschmitt mxschmitt requested review from rwoll and yury-s September 26, 2022 08:30
SETLOCAL
IF %PLAYWRIGHT_NODEJS_PATH%x == x SET PLAYWRIGHT_NODEJS_PATH="%~dp0\node.exe"
"%PLAYWRIGHT_NODEJS_PATH%" "%~dp0\package\lib\cli\cli.js" %*
if not defined PLAYWRIGHT_NODEJS_PATH (
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: use all CAPITAL letters for the keywords?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

microsoft does use lowercase in the docs, so it seems better like that: https://learn.microsoft.com/en-us/windows-server/administration/windows-commands/if

@rwoll
Copy link
Copy Markdown
Member

rwoll commented Sep 26, 2022

Let's consider cherry-picking over to 1.26 branch and releasing a python version with it.

@mxschmitt mxschmitt merged commit a5eee6d into main Sep 26, 2022
@mxschmitt mxschmitt deleted the mxschmitt/bugfix-driver-spaces branch September 26, 2022 17:19
mxschmitt pushed a commit that referenced this pull request Sep 26, 2022
)

This PR cherry-picks the following commits:

- a5eee6d

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

3 participants