Skip to content

Commit 82ac046

Browse files
authored
fix(subprocess): tolerate spaces in paths (#217)
1 parent 7aed55c commit 82ac046

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

playwright/main.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,6 @@ def main() -> None:
146146
if st.st_mode & stat.S_IEXEC == 0:
147147
os.chmod(driver_executable, st.st_mode | stat.S_IEXEC)
148148
print("Installing the browsers...")
149-
subprocess.check_call(f"{driver_executable} install", shell=True)
149+
subprocess.check_call([str(driver_executable), "install"])
150150

151151
print("Playwright is now ready for use")

0 commit comments

Comments
 (0)