diff --git a/modules/bindings/pymod/kclust.py b/modules/bindings/pymod/kclust.py index 3a0605be3765eea274dc97c799a34aabc0ff191a..f4ace67882dc51505424f5ce4daf6a420adfb877 100644 --- a/modules/bindings/pymod/kclust.py +++ b/modules/bindings/pymod/kclust.py @@ -99,7 +99,7 @@ def _RunkClust(tmp_dir_name, clustering_thresh, create_alignments): executable=settings.Locate('kClust') cmd=[] - cmd.append('kClust') + cmd.append(executable) cmd.append('-i') cmd.append(os.path.join(tmp_dir_name,'fastadb.fasta')) cmd.append('-d') @@ -108,8 +108,8 @@ def _RunkClust(tmp_dir_name, clustering_thresh, create_alignments): cmd.append(str(bitscore)) cmd=' '.join(cmd) - ps=subprocess.Popen(cmd, shell=True, stdout=subprocess.PIPE) - ps.stdout.readlines() + ps=subprocess.Popen(cmd, shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE) + stdout, stderr = ps.communicate() result=_ParseOutput(tmp_dir_name)