Fix filesystem encoding on windows
This commit is contained in:
parent
1feab17c18
commit
230f0078fe
1 changed files with 2 additions and 1 deletions
3
mpv.py
3
mpv.py
|
|
@ -8,12 +8,13 @@ from warnings import warn
|
||||||
from functools import partial
|
from functools import partial
|
||||||
|
|
||||||
# vim: ts=4 sw=4 et
|
# vim: ts=4 sw=4 et
|
||||||
fs_enc = sys.getfilesystemencoding()
|
|
||||||
|
|
||||||
if os.name == 'nt':
|
if os.name == 'nt':
|
||||||
backend = CDLL(ctypes.util.find_library('mpv-1.dll'))
|
backend = CDLL(ctypes.util.find_library('mpv-1.dll'))
|
||||||
|
fs_enc = 'utf-8'
|
||||||
else:
|
else:
|
||||||
backend = CDLL(ctypes.util.find_library('mpv'))
|
backend = CDLL(ctypes.util.find_library('mpv'))
|
||||||
|
fs_enc = sys.getfilesystemencoding()
|
||||||
|
|
||||||
|
|
||||||
class MpvHandle(c_void_p):
|
class MpvHandle(c_void_p):
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue