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

This commit is contained in:
Tomas Groth 2015-10-23 18:18:25 +01:00
parent 50ceb568e5
commit 8e6d1283f7

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