diff --git a/modules/bindings/pymod/hhblits.py b/modules/bindings/pymod/hhblits.py index 5567dd2296f9c9819d610bb18558668c878f8a14..ff08319a4319cc562f6182df296ed20b7b92fe8b 100644 --- a/modules/bindings/pymod/hhblits.py +++ b/modules/bindings/pymod/hhblits.py @@ -624,8 +624,17 @@ class HHblits: return hhm_file ost.LogVerbose('converting %s to %s' % (a3m_file, hhm_file)) os.putenv('HHLIB', self.hhlib_dir) - if subprocess.call('%s -i %s -o %s' % (hhmake, a3m_file, hhm_file), - shell=True): + job = subprocess.Popen('%s -i %s -o %s' % (hhmake, a3m_file, hhm_file), + shell=True, stdout=subprocess.PIPE, + stderr=subprocess.PIPE) + sout, serr = job.communicate() + lines = serr.decode().splitlines() + for line in lines: + ost.LogWarning(line) + lines = sout.decode().splitlines() + for line in lines: + ost.LogVerbose(line) + if job.returncode !=0: raise IOError('could not convert a3m to hhm file') return hhm_file