From 3f22dae3993bd92937692271cdd92d2ebd80f556 Mon Sep 17 00:00:00 2001 From: Bastian Kleineidam Date: Wed, 23 May 2012 05:19:14 +0200 Subject: [PATCH] Fix codec detection. --- tests/__init__.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/__init__.py b/tests/__init__.py index 2be7915..7d8a7e8 100644 --- a/tests/__init__.py +++ b/tests/__init__.py @@ -178,4 +178,6 @@ def has_codec (program, codec): """Test if program supports given codec.""" if program == '7z' and codec == 'rar': return patoolib.util.p7zip_supports_rar() - return patoolib.program_supports_compression(program, codec) + if patoolib.program_supports_compression(program, codec): + return True + return patoolib.util.find_program(codec)