aboutsummaryrefslogtreecommitdiffstats
path: root/yt_dlp/compat.py
diff options
context:
space:
mode:
authorJesús <heckyel@hyperbola.info>2021-10-31 11:36:52 -0500
committerJesús <heckyel@hyperbola.info>2021-10-31 11:36:52 -0500
commit5bb25093eb718346ab8a723d2c04f0066fc3958a (patch)
tree8a7fa5611895a933eaf1ef1623f7b9e1a1c36157 /yt_dlp/compat.py
parentc7afb25e19a91493db6069d1db9f7d1bc8491dc1 (diff)
parent652fb0d446524af4b783276babd55f5fc6a3afeb (diff)
downloadhypervideo-pre-5bb25093eb718346ab8a723d2c04f0066fc3958a.tar.lz
hypervideo-pre-5bb25093eb718346ab8a723d2c04f0066fc3958a.tar.xz
hypervideo-pre-5bb25093eb718346ab8a723d2c04f0066fc3958a.zip
updated from upstream | 31/10/2021 at 11:36
Diffstat (limited to 'yt_dlp/compat.py')
-rw-r--r--yt_dlp/compat.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/yt_dlp/compat.py b/yt_dlp/compat.py
index b107b2114..8508f1465 100644
--- a/yt_dlp/compat.py
+++ b/yt_dlp/compat.py
@@ -19,6 +19,7 @@ import shlex
import shutil
import socket
import struct
+import subprocess
import sys
import tokenize
import urllib
@@ -162,7 +163,9 @@ except ImportError:
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