Skip to content

Commit ca742b0

Browse files
authored
chore: hide Window always on Windows (#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)