Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 2 commits into from Sep 26, 2022

Conversation

mxschmitt
Copy link
Member

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

@@ -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" %*
if not defined PLAYWRIGHT_NODEJS_PATH (
Copy link
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
Member 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
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