Improve Windows support

Windows users don't have to edit the source code anymore.
This commit is contained in:
Frechdachs 2016-02-12 12:42:14 +01:00 committed by jaseg
parent bcd8166829
commit c42fe539ab
1 changed files with 4 additions and 1 deletions

5
mpv.py
View File

@ -8,7 +8,10 @@ from warnings import warn
# vim: ts=4 sw=4
backend = CDLL('libmpv.so')
if os.name == 'nt':
backend = CDLL('mpv-1.dll')
else:
backend = CDLL('libmpv.so')
class MpvHandle(c_void_p):