From b1687015754682902a1687a3b29362810610d85b Mon Sep 17 00:00:00 2001
From: Kevin Howe <klh@ebi.ac.uk>
Date: Thu, 23 Oct 2014 12:10:24 +0100
Subject: [PATCH] LSF profile file now optional for resubmission as well as
 initial submission

---
 .../xref_mapping/XrefMapper/Methods/ExonerateBasic.pm        | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/misc-scripts/xref_mapping/XrefMapper/Methods/ExonerateBasic.pm b/misc-scripts/xref_mapping/XrefMapper/Methods/ExonerateBasic.pm
index 246ce8d43c..4b5dd1636b 100644
--- a/misc-scripts/xref_mapping/XrefMapper/Methods/ExonerateBasic.pm
+++ b/misc-scripts/xref_mapping/XrefMapper/Methods/ExonerateBasic.pm
@@ -295,7 +295,10 @@ EON
   my $exe_file = $root_dir."/".$unique_name.".submit";
   open(my $rh,">", $exe_file) || die "Could not open file $exe_file";
   
-  print $rh ". /usr/local/lsf/conf/profile.lsf\n";
+  my $lsf_conf = "/usr/local/lsf/conf/profile.lsf";
+  if (-e $lsf_conf) {
+    print $rh ". $lsf_conf\n";
+  }
   print $rh $command."\n";
 
   close $rh;
-- 
GitLab