Skip to content

Commit ca742b0

Browse files
authored
chore: hide Window always on Windows (microsoft#1648)
1 parent cc5579c commit ca742b0

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

playwright/_impl/_transport.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,9 +107,8 @@ async def wait_until_stopped(self) -> None:
107107

108108
async def connect(self) -> None:
109109
self._stopped_future: asyncio.Future = asyncio.Future()
110-
# Hide the command-line window on Windows when using Pythonw.exe
111110
creationflags = 0
112-
if sys.platform == "win32" and sys.stdout is None:
111+
if sys.platform == "win32":
113112
creationflags = subprocess.CREATE_NO_WINDOW
114113

115114
try:

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