diff options
author | jaseg <code@jaseg.net> | 2016-08-09 23:38:21 +0200 |
---|---|---|
committer | jaseg <code@jaseg.net> | 2016-08-09 23:38:21 +0200 |
commit | 230f0078fe2dd9edfeb2082516b15689c1c04e94 (patch) | |
tree | 93e6166d4110c726f700744d0301ce231113fa48 | |
parent | 1feab17c1836f756785d206cb808bc08c91f2695 (diff) | |
download | python-mpv-230f0078fe2dd9edfeb2082516b15689c1c04e94.tar.gz python-mpv-230f0078fe2dd9edfeb2082516b15689c1c04e94.tar.bz2 python-mpv-230f0078fe2dd9edfeb2082516b15689c1c04e94.zip |
Fix filesystem encoding on windows
-rw-r--r-- | mpv.py | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -8,12 +8,13 @@ from warnings import warn 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): |