Skip to content

Commit

Permalink
Use the TCoffee -verion flag when checking if T-COFFEE is installed. …
Browse files Browse the repository at this point in the history
…May help on Bug 2880, but is also faster.
  • Loading branch information
peterc committed Jul 18, 2009
1 parent 622bb8e commit 25626e5
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Tests/test_TCoffee_tool.py
Expand Up @@ -18,8 +18,9 @@
"Testing TCOFFEE on Windows not supported yet")
else :
import commands
output = commands.getoutput("t_coffee")
if "not found" not in output and "t_coffee" in output.lower():
output = commands.getoutput("t_coffee -version")
if "not found" not in output \
and ("t_coffee" in output.lower() or "t-coffee" in output.lower()):
t_coffee_exe = "t_coffee"

if not t_coffee_exe:
Expand Down

0 comments on commit 25626e5

Please sign in to comment.