Skip to content

Commit

Permalink
Fix filesystem encoding on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
jaseg committed Aug 9, 2016
1 parent 1feab17 commit 230f007
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mpv.py
Expand Up @@ -8,12 +8,13 @@
from functools import partial

# vim: ts=4 sw=4 et
fs_enc = sys.getfilesystemencoding()

if os.name == 'nt':
backend = CDLL(ctypes.util.find_library('mpv-1.dll'))
fs_enc = 'utf-8'
else:
backend = CDLL(ctypes.util.find_library('mpv'))
fs_enc = sys.getfilesystemencoding()


class MpvHandle(c_void_p):
Expand Down

0 comments on commit 230f007

Please sign in to comment.