Skip to content

Commit

Permalink
[compat] Don't create console in windows_enable_vt_mode
Browse files Browse the repository at this point in the history
  • Loading branch information
pukkandan committed Oct 26, 2021
1 parent 0c873df commit 673944b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion yt_dlp/compat.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
import shutil
import socket
import struct
import subprocess
import sys
import tokenize
import urllib
Expand Down Expand Up @@ -162,7 +163,9 @@ def compat_expanduser(path):
def windows_enable_vt_mode(): # TODO: Do this the proper way https://bugs.python.org/issue30075
if compat_os_name != 'nt':
return
os.system('')
startupinfo = subprocess.STARTUPINFO()
startupinfo.dwFlags |= subprocess.STARTF_USESHOWWINDOW
subprocess.Popen('', shell=True, startupinfo=startupinfo)


# Deprecated
Expand Down

0 comments on commit 673944b

Please sign in to comment.