Skip to content

Commit

Permalink
chore: hide Window always on Windows (#1648)
Browse files Browse the repository at this point in the history
  • Loading branch information
mxschmitt committed Nov 15, 2022
1 parent cc5579c commit ca742b0
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions playwright/_impl/_transport.py
Expand Up @@ -107,9 +107,8 @@ async def wait_until_stopped(self) -> None:

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

try:
Expand Down

0 comments on commit ca742b0

Please sign in to comment.