]> jfr.im git - yt-dlp.git/blobdiff - yt_dlp/cache.py
[compat] Remove more functions
[yt-dlp.git] / yt_dlp / cache.py
index e3f8a7dab2ff2e8e7ffe2f3071471f5dc011c739..83351b79765ff40e7c9416524b02a740d2456a6d 100644 (file)
@@ -6,7 +6,6 @@
 import shutil
 import traceback
 
-from .compat import compat_getenv
 from .utils import expand_path, write_json_file
 
 
@@ -17,7 +16,7 @@ def __init__(self, ydl):
     def _get_root_dir(self):
         res = self._ydl.params.get('cachedir')
         if res is None:
-            cache_root = compat_getenv('XDG_CACHE_HOME', '~/.cache')
+            cache_root = os.getenv('XDG_CACHE_HOME', '~/.cache')
             res = os.path.join(cache_root, 'yt-dlp')
         return expand_path(res)