Skip to content

Commit 0a3d7f0

Browse files
authored
chore: allow custom PLAYWRIGHT_BROWSERS_PATH with Pyinstaller (microsoft#1002)
1 parent 29b5a13 commit 0a3d7f0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

playwright/_impl/_transport.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ async def connect(self) -> None:
115115
# For pyinstaller
116116
env = os.environ.copy()
117117
if getattr(sys, "frozen", False):
118-
env["PLAYWRIGHT_BROWSERS_PATH"] = "0"
118+
env.setdefault("PLAYWRIGHT_BROWSERS_PATH", "0")
119119

120120
self._proc = await asyncio.create_subprocess_exec(
121121
str(self._driver_executable),

0 commit comments

Comments
 (0)