check_output is only supported by Python 2.7 onwards

This commit is contained in:
Tailszefox 2012-10-15 14:28:54 +02:00
parent 902b2a0a45
commit 890d070d94

View File

@ -73,7 +73,7 @@ class FFmpegExtractAudioPP(PostProcessor):
def detect_executables(): def detect_executables():
def executable(exe): def executable(exe):
try: try:
subprocess.check_output([exe, '-version']) subprocess.Popen([exe, '-version'], stdout=subprocess.PIPE, stderr=subprocess.STDOUT).communicate()[0]
except OSError: except OSError:
return False return False
return exe return exe