changeset 31:3ef6c246ccac draft

planemo upload for repository https://github.com/peterjc/pico_galaxy/tree/master/tools/effectiveT3 commit 79bbb921cb5aa953f0323accd6c8c293c6e486cf-dirty
author peterjc
date Tue, 06 Jun 2017 10:19:10 -0400
parents 007e86eff414
children 1129cafdf0ae
files tools/effectiveT3/effectiveT3.py
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/tools/effectiveT3/effectiveT3.py	Mon May 22 06:33:59 2017 -0400
+++ b/tools/effectiveT3/effectiveT3.py	Tue Jun 06 10:19:10 2017 -0400
@@ -73,7 +73,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(),