Fixed loading of libvlc.dll on windows

This commit is contained in:
Tomas Groth 2014-06-24 19:46:23 +02:00
parent d61111ab89
commit 248e703345
1 changed files with 4 additions and 1 deletions

View File

@ -110,7 +110,10 @@ def find_lib():
p = find_library('libvlc.dll')
if p is None:
try: # some registry settings
import _winreg as w # leaner than win32api, win32con
if PYTHON3:
import winreg as w # leaner than win32api, win32con
else:
import _winreg as w # leaner than win32api, win32con
for r in w.HKEY_LOCAL_MACHINE, w.HKEY_CURRENT_USER:
try:
r = w.OpenKey(r, 'Software\\VideoLAN\\VLC')