Mercurial > repos > peterjc > mira4_assembler
diff tools/mira4_0/mira4_convert.py @ 34:0785a6537f3e draft
planemo upload for repository https://github.com/peterjc/galaxy_mira/tree/master/tools/mira4_0 commit 6405ba93fcec7ea93452bf54d559c7507ee7a57c
author | peterjc |
---|---|
date | Wed, 07 Jun 2017 12:33:39 -0400 |
parents | 56b421d59805 |
children | 259891fce7fd |
line wrap: on
line diff
--- a/tools/mira4_0/mira4_convert.py Fri Jun 02 11:22:01 2017 -0400 +++ b/tools/mira4_0/mira4_convert.py Wed Jun 07 12:33:39 2017 -0400 @@ -29,7 +29,8 @@ # Avoid using shell=True when we call subprocess to ensure if the Python # script is killed, so too is the child process. try: - child = subprocess.Popen(cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE) + child = subprocess.Popen(cmd, universal_newlines=True, + stdout=subprocess.PIPE, stderr=subprocess.PIPE) except Exception as err: sys.exit("Error invoking command:\n%s\n\n%s\n" % (" ".join(cmd), err)) # Use .communicate as can get deadlocks with .wait(),