Improve Windows support
Windows users don't have to edit the source code anymore.
This commit is contained in:
parent
bcd8166829
commit
c42fe539ab
1 changed files with 4 additions and 1 deletions
5
mpv.py
5
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):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue