Skip to content

Commit 0a3d7f0

Browse files
authored
chore: allow custom PLAYWRIGHT_BROWSERS_PATH with Pyinstaller (#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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy