commit/galaxy-central: kanwei: Fix debugging output on BLASTX+ failure
1 new changeset in galaxy-central: http://bitbucket.org/galaxy/galaxy-central/changeset/dd3c21ebfa4a/ changeset: r5119:dd3c21ebfa4a user: kanwei date: 2011-02-24 18:27:37 summary: Fix debugging output on BLASTX+ failure affected #: 1 file (164 bytes) --- a/tools/ncbi_blast_plus/hide_stderr.py Thu Feb 24 12:16:33 2011 -0500 +++ b/tools/ncbi_blast_plus/hide_stderr.py Thu Feb 24 12:27:37 2011 -0500 @@ -23,6 +23,13 @@ #Avoid using shell=True when we call subprocess to ensure if the Python #script is killed, so too is the BLAST process. try: + words = [] + for w in sys.argv[1:]: + if " " in w: + words.append('"%s"' % w) + else: + words.append(w) + cmd = " ".join(words) child = subprocess.Popen(sys.argv[1:], stdout=subprocess.PIPE, stderr=subprocess.PIPE) except Exception, err: Repository URL: https://bitbucket.org/galaxy/galaxy-central/ -- This is a commit notification from bitbucket.org. You are receiving this because you have the service enabled, addressing the recipient of this email.
participants (1)
-
Bitbucket