[utils] Preliminary fix for Python2 with non-ASCII paths
This commit is contained in:
parent
c0450e2014
commit
e556aa643d
@ -2582,7 +2582,7 @@ 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__))))
|
||||||
|
|
||||||
return ret
|
return map(decodeFilename, ret)
|
||||||
|
|
||||||
|
|
||||||
def find_file_in_root(file_path):
|
def find_file_in_root(file_path):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user