[utils] Also search .mo files in sys.prefix
This commit is contained in:
parent
af9c89ba07
commit
312bfeca77
@ -2585,6 +2585,9 @@ def get_root_dirs():
|
|||||||
# ../../ of youtube_dl/utils.py
|
# ../../ of youtube_dl/utils.py
|
||||||
ret.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
|
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)
|
return map(decodeFilename, ret)
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user