summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrechdachs <Frechdachs@users.noreply.github.com>2016-02-12 12:42:14 +0100
committerjaseg <code@jaseg.net>2016-02-12 14:09:21 +0100
commitc42fe539ab50ce1c3f783b4d0b74ae0f99d5ab73 (patch)
tree2d402b7fba32ba3d4024d14c95ec58428e69756b
parentbcd81668291931c344dd8d605ef74048c96d42a7 (diff)
downloadpython-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.
-rw-r--r--mpv.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/mpv.py b/mpv.py
index 3916462..fc03f7c 100644
--- a/mpv.py
+++ b/mpv.py
@@ -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):