[Biopython-dev] [Bug 2480] Local BLAST fails: Spaces in Windows file-path values

bugzilla-daemon at portal.open-bio.org bugzilla-daemon at portal.open-bio.org
Thu Oct 2 06:12:26 UTC 2008


http://bugzilla.open-bio.org/show_bug.cgi?id=2480





------- Comment #33 from drpatnaik at yahoo.com  2008-10-02 02:12 EST -------
Re: using subprocess.Popen with shell=True/False (comment #27), while
'shell=True' works on Mac OS X, and probably other Unix/like systems, one gets
'C:\Documents is not a recogniz...' type of error in Windows. With
'shell=False', also the deafult 'shell' value on Unix, Windows works but Mac OS
X fails. So this should be cross-platform (works on Windows XP):

   my_process = subprocess.Popen(my_blast_cmd, stdin=subprocess.PIPE,
stdout=subprocess.PIPE, stderr=subprocess.PIPE, shell=(True,
False)[sys.platform == "win32"])


-- 
Configure bugmail: http://bugzilla.open-bio.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the Biopython-dev mailing list