From f83c4bd91e87a5435a8ef5502cf4d7460a11789a Mon Sep 17 00:00:00 2001
From: Alessandro Vullo <avullo@ebi.ac.uk>
Date: Wed, 10 Aug 2016 13:57:53 +0100
Subject: [PATCH] [ENSCORESW-1846]. Dynamically set exonerate path based on
 user environment.

---
 misc-scripts/xref_mapping/XrefMapper/Methods/ExonerateBasic.pm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/misc-scripts/xref_mapping/XrefMapper/Methods/ExonerateBasic.pm b/misc-scripts/xref_mapping/XrefMapper/Methods/ExonerateBasic.pm
index 0a20635115..7ae9198f50 100644
--- a/misc-scripts/xref_mapping/XrefMapper/Methods/ExonerateBasic.pm
+++ b/misc-scripts/xref_mapping/XrefMapper/Methods/ExonerateBasic.pm
@@ -28,7 +28,7 @@ use File::Basename;
 use IPC::Open3;
 
 # Path to exonerate executable
-my $exonerate_path = "/software/ensembl/exonerate-2.2.0/bin/exonerate";
+my $exonerate_path = `which exonerate`; $exonerate_path =~ s/\n//;
 
 sub new {
 
-- 
GitLab