]> jfr.im git - yt-dlp.git/blobdiff - yt_dlp/utils.py
[build, cleanup] Refactor
[yt-dlp.git] / yt_dlp / utils.py
index 12204433d73ade8f17444170b09f7f8758886586..2e3c51562ae294c2ebed6eb28b0204d49e3b4b45 100644 (file)
@@ -4904,9 +4904,9 @@ def make_dir(path, to_screen=None):
 
 
 def get_executable_path():
-    from .update import get_variant_and_executable_path
+    from .update import _get_variant_and_executable_path
 
-    return os.path.abspath(get_variant_and_executable_path()[1])
+    return os.path.dirname(os.path.abspath(_get_variant_and_executable_path()[1]))
 
 
 def load_plugins(name, suffix, namespace):