forked from openlp/openlp
make mediainfo detection work on win and mac.
This commit is contained in:
parent
907282d3cd
commit
26e72a1fec
@ -71,8 +71,12 @@ class MediaPlugin(Plugin):
|
|||||||
:return: true or false
|
:return: true or false
|
||||||
"""
|
"""
|
||||||
log.debug('check_installed Mediainfo')
|
log.debug('check_installed Mediainfo')
|
||||||
# Use the user defined program if given
|
# Try to find mediainfo in the path
|
||||||
return process_check_binary('mediainfo')
|
exists = process_check_binary('mediainfo')
|
||||||
|
# If mediainfo is not in the path, try to find it in the application folder
|
||||||
|
if not exists:
|
||||||
|
exists = process_check_binary(os.path.join(AppLocation.get_directory(AppLocation.AppDir), 'mediainfo'))
|
||||||
|
return exists
|
||||||
|
|
||||||
def app_startup(self):
|
def app_startup(self):
|
||||||
"""
|
"""
|
||||||
|
Loading…
Reference in New Issue
Block a user