Skip to content

Commit 2402e12

Browse files
authored
chore: support for Nuitka (#2435)
1 parent a7a7dcb commit 2402e12

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

playwright/_impl/_transport.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,9 +105,9 @@ async def connect(self) -> None:
105105
self._stopped_future: asyncio.Future = asyncio.Future()
106106

107107
try:
108-
# For pyinstaller
108+
# For pyinstaller and Nuitka
109109
env = get_driver_env()
110-
if getattr(sys, "frozen", False):
110+
if getattr(sys, "frozen", False) or globals().get("_compiled__"):
111111
env.setdefault("PLAYWRIGHT_BROWSERS_PATH", "0")
112112

113113
startupinfo = None

0 commit comments

Comments
 (0)