From f6995e5d65dd16b79a83e0819acea43c0ab52e9c Mon Sep 17 00:00:00 2001
From: Gerardo Tauriello <gerardo.tauriello@unibas.ch>
Date: Tue, 22 Jan 2019 19:13:05 +0100
Subject: [PATCH] Use absolute paths to input files for hhblits binding calls.

---
 modules/bindings/pymod/hhblits.py | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/modules/bindings/pymod/hhblits.py b/modules/bindings/pymod/hhblits.py
index 0a1045171..a203a2920 100644
--- a/modules/bindings/pymod/hhblits.py
+++ b/modules/bindings/pymod/hhblits.py
@@ -543,6 +543,8 @@ class HHblits:
         """
         if a3m_file is None:
             a3m_file = '%s.a3m' % os.path.splitext(self.filename)[0]
+        else:
+            a3m_file = os.path.abspath(a3m_file)
         if os.path.exists(a3m_file):
             ost.LogInfo('Reusing already existing query alignment (%s)' % a3m_file)
             return a3m_file
@@ -720,7 +722,7 @@ class HHblits:
             self.hhblits_bin,
             opt_cmd,
             os.path.abspath(a3m_file),
-            hhr_file,
+            os.path.abspath(hhr_file),
             os.path.join(os.path.abspath(os.path.split(database)[0]),
                          os.path.split(database)[1]))
         ost.LogInfo('searching %s' % database)
-- 
GitLab