diff options
author | Frechdachs <Frechdachs@users.noreply.github.com> | 2016-02-12 12:42:14 +0100 |
---|---|---|
committer | jaseg <code@jaseg.net> | 2016-02-12 14:09:21 +0100 |
commit | c42fe539ab50ce1c3f783b4d0b74ae0f99d5ab73 (patch) | |
tree | 2d402b7fba32ba3d4024d14c95ec58428e69756b /mpv.py | |
parent | bcd81668291931c344dd8d605ef74048c96d42a7 (diff) | |
download | python-mpv-c42fe539ab50ce1c3f783b4d0b74ae0f99d5ab73.tar.gz python-mpv-c42fe539ab50ce1c3f783b4d0b74ae0f99d5ab73.tar.bz2 python-mpv-c42fe539ab50ce1c3f783b4d0b74ae0f99d5ab73.zip |
Improve Windows support
Windows users don't have to edit the source code anymore.
Diffstat (limited to 'mpv.py')
-rw-r--r-- | mpv.py | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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): |