From 312bfeca77ab98ca7c64db29d2188f7e58ec4b5d Mon Sep 17 00:00:00 2001 From: Yen Chi Hsuan Date: Sat, 26 Dec 2015 05:29:52 +0800 Subject: [PATCH] [utils] Also search .mo files in sys.prefix --- youtube_dl/utils.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/youtube_dl/utils.py b/youtube_dl/utils.py index 02f0c839d..506c3b9b1 100644 --- a/youtube_dl/utils.py +++ b/youtube_dl/utils.py @@ -2585,6 +2585,9 @@ def get_root_dirs(): # ../../ of youtube_dl/utils.py ret.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__)))) + if sys.prefix not in ret: + ret.append(sys.prefix) # fallback + return map(decodeFilename, ret)