Skip to content
Snippets Groups Projects
Commit 33e8b86a authored by Studer Gabriel's avatar Studer Gabriel
Browse files

set universal_newlines flag in Popen

This enables string encoding in passed streams => stdout and stderr
parent 7be99f6b
No related branches found
No related tags found
No related merge requests found
......@@ -140,9 +140,12 @@ def _RuniAlign(ialign, tmp_dir, options={}):
else:
ialign_path=settings.Locate('ialign.pl', explicit_file_name=ialign)
command="\"%s\" \"%s\" \"%s\" %s" % (ialign_path, model1_filename, model2_filename, cmd_opts)
ps=subprocess.Popen(command, shell=True, stdout=subprocess.PIPE)
ps=subprocess.Popen(command, shell=True, stdout=subprocess.PIPE,
universal_newlines=True)
ps.wait()
lines=ps.stdout.readlines()
if (len(lines))<22:
_CleanupFiles(tmp_dir)
#for l in lines:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment