From 51225d1b7d8e80eb682cd375d57f1c03816fa13f Mon Sep 17 00:00:00 2001 From: Andrew Waterhouse <andrew.waterhouse@unibas.ch> Date: Fri, 17 Jan 2020 11:44:33 +0100 Subject: [PATCH] Subprocess wait in deadlock averted --- modules/bindings/pymod/clustalw.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/bindings/pymod/clustalw.py b/modules/bindings/pymod/clustalw.py index 074199283..aab374f07 100644 --- a/modules/bindings/pymod/clustalw.py +++ b/modules/bindings/pymod/clustalw.py @@ -129,8 +129,8 @@ def ClustalW(seq1, seq2=None, clustalw=None, keep_files=False, nopgap=False, if clustalw_option_string!=False: command=command+" "+clustalw_option_string #see useful flags: http://toolkit.tuebingen.mpg.de/clustalw/help_params - with subprocess.Popen(command, shell=True, stdout=subprocess.PIPE) as ps: - ps.wait() + subprocess.run(command, shell=True, stdout=subprocess.DEVNULL) + aln=io.LoadAlignment(out) -- GitLab