diff options
author | pukkandan <pukkandan.ytdlp@gmail.com> | 2021-10-20 21:49:40 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-20 21:49:40 +0530 |
commit | d3c93ec2b7f5bcb872b0afb169efaa2f1abdf6e2 (patch) | |
tree | 47b35a228e28d3b562c6b43707c3fb967178083a /yt_dlp/update.py | |
parent | b4b855ebc7fac536a85f087f6921df69dec4e470 (diff) |
Don't create console for subprocesses on Windows (#1261)
Closes #1251
Diffstat (limited to 'yt_dlp/update.py')
-rw-r--r-- | yt_dlp/update.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/yt_dlp/update.py b/yt_dlp/update.py index 26f18bdda..e4b1280be 100644 --- a/yt_dlp/update.py +++ b/yt_dlp/update.py @@ -10,7 +10,7 @@ import traceback from zipimport import zipimporter from .compat import compat_realpath -from .utils import encode_compat_str +from .utils import encode_compat_str, Popen from .version import __version__ @@ -191,7 +191,7 @@ def run_update(ydl): return try: # Continues to run in the background - subprocess.Popen( + Popen( 'ping 127.0.0.1 -n 5 -w 1000 & del /F "%s.old"' % exe, shell=True, stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL) ydl.to_screen('Updated yt-dlp to version %s' % version_id) |