[utils] Also search .mo files in sys.prefix

This commit is contained in:
Yen Chi Hsuan 2015-12-26 05:29:52 +08:00
parent af9c89ba07
commit 312bfeca77

View File

@ -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)