From 248e703345e86ebfbcf5de882b9fea63b1215908 Mon Sep 17 00:00:00 2001 From: Tomas Groth Date: Tue, 24 Jun 2014 19:46:23 +0200 Subject: [PATCH] Fixed loading of libvlc.dll on windows --- openlp/core/ui/media/vendor/vlc.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/openlp/core/ui/media/vendor/vlc.py b/openlp/core/ui/media/vendor/vlc.py index 0326e4104..01aced404 100644 --- a/openlp/core/ui/media/vendor/vlc.py +++ b/openlp/core/ui/media/vendor/vlc.py @@ -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')