diff options
author | ripdog <ripdog@users.noreply.github.com> | 2019-12-04 11:42:57 +1300 |
---|---|---|
committer | jaseg <code@jaseg.net> | 2019-12-03 23:42:57 +0100 |
commit | c6a8088f3ab000cfa09dc688d6bfc5e239c55d5f (patch) | |
tree | 08aabf7a084ba7e88ae992d6bfb434d4a4f524aa /LICENSE | |
parent | 9d9c2b26f3fe173964f702e1c7c22f866d2411c8 (diff) | |
download | python-mpv-c6a8088f3ab000cfa09dc688d6bfc5e239c55d5f.tar.gz python-mpv-c6a8088f3ab000cfa09dc688d6bfc5e239c55d5f.tar.bz2 python-mpv-c6a8088f3ab000cfa09dc688d6bfc5e239c55d5f.zip |
Allow mpv-1.dll to be placed in python script directory (#96)
Windows: Look for DLL in script directory
Loading DLLs through ctypes on Windows is a mess. ctypes looks in PATH, which is different from the Windows built-in DLL loading system. By default ctypes looks next to python.exe, but you might not want to install python script dependencies next to the system-wide python interpreter.
This commit adds a fallback looking for mpv-1.dll in the same directory the mpv.py script is placed in to allow people to use python-mpv with a minimum in configuration. You can still control loading behavior through PATH. For details on this, consult the following stackoverflow answer: https://stackoverflow.com/a/23805306
Diffstat (limited to 'LICENSE')
0 files changed, 0 insertions, 0 deletions