forked from openlp/openlp
Fixed loading of libvlc.dll on windows
This commit is contained in:
parent
d61111ab89
commit
248e703345
5
openlp/core/ui/media/vendor/vlc.py
vendored
5
openlp/core/ui/media/vendor/vlc.py
vendored
@ -110,7 +110,10 @@ def find_lib():
|
|||||||
p = find_library('libvlc.dll')
|
p = find_library('libvlc.dll')
|
||||||
if p is None:
|
if p is None:
|
||||||
try: # some registry settings
|
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:
|
for r in w.HKEY_LOCAL_MACHINE, w.HKEY_CURRENT_USER:
|
||||||
try:
|
try:
|
||||||
r = w.OpenKey(r, 'Software\\VideoLAN\\VLC')
|
r = w.OpenKey(r, 'Software\\VideoLAN\\VLC')
|
||||||
|
Loading…
Reference in New Issue
Block a user