aboutsummaryrefslogtreecommitdiffstats
path: root/yt_dlp/utils.py
diff options
context:
space:
mode:
authorpukkandan <pukkandan.ytdlp@gmail.com>2021-10-04 02:25:13 +0530
committerpukkandan <pukkandan.ytdlp@gmail.com>2021-10-04 03:08:27 +0530
commit5d535b4a559ff114866368bfb3cde38b54f9462b (patch)
tree386dd3e38534b57f386eba4d8aa109c505c867d5 /yt_dlp/utils.py
parenta1c3967307053767d8c44a5814c88610fe6c4860 (diff)
downloadhypervideo-pre-5d535b4a559ff114866368bfb3cde38b54f9462b.tar.lz
hypervideo-pre-5d535b4a559ff114866368bfb3cde38b54f9462b.tar.xz
hypervideo-pre-5d535b4a559ff114866368bfb3cde38b54f9462b.zip
[build] Allow building with py2exe (and misc fixes)
py2exe config is copied from youtube-dl Closes #1160
Diffstat (limited to 'yt_dlp/utils.py')
-rw-r--r--yt_dlp/utils.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/yt_dlp/utils.py b/yt_dlp/utils.py
index 7a77edf4c..b79b79688 100644
--- a/yt_dlp/utils.py
+++ b/yt_dlp/utils.py
@@ -4521,11 +4521,10 @@ def is_outdated_version(version, limit, assume_new=True):
def ytdl_is_updateable():
""" Returns if yt-dlp can be updated with -U """
- return False
- from zipimport import zipimporter
+ from .update import is_non_updateable
- return isinstance(globals().get('__loader__'), zipimporter) or hasattr(sys, 'frozen')
+ return not is_non_updateable()
def args_to_str(args):