Skip to content

fix(subprocess): tolerate spaces in paths #217

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

Merged
merged 2 commits into from
Oct 3, 2020

Conversation

pavelfeldman
Copy link
Member

@pavelfeldman pavelfeldman commented Oct 3, 2020

Fixes #215

Copy link
Member

@mxschmitt mxschmitt left a comment

Choose a reason for hiding this comment

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

stamp!

@@ -146,6 +146,6 @@ def main() -> None:
if st.st_mode & stat.S_IEXEC == 0:
os.chmod(driver_executable, st.st_mode | stat.S_IEXEC)
print("Installing the browsers...")
subprocess.check_call(f"{driver_executable} install", shell=True)
subprocess.check_call([driver_executable, install])
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
subprocess.check_call([driver_executable, install])
subprocess.check_call([driver_executable, "install"])

@pavelfeldman pavelfeldman merged commit 82ac046 into microsoft:master Oct 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Can't install playwright if path contains spaces
2 participants