Implement a workaround for a PyInstaller 3.0 bug to load vlc.

bzr-revno: 2565
Fixes: https://launchpad.net/bugs/1507385
This commit is contained in:
second@tgc.dk 2015-10-28 21:43:54 +00:00 committed by Tim Bentley
commit 3393583d6d
1 changed files with 1 additions and 0 deletions

View File

@ -107,6 +107,7 @@ def find_lib():
except OSError: # may fail
dll = ctypes.CDLL('libvlc.so.5')
elif sys.platform.startswith('win'):
ctypes.windll.kernel32.SetDllDirectoryW(None)
p = find_library('libvlc.dll')
if p is None:
try: # some registry settings