Why is python no longer waiting for os.system to finish?
问题 I have the following function, which has been working great for months. I have not updated my version of Python (unless it happens behind the scenes?). def Blast(type, protein_sequence, start, end, genomic_sequence): result = [] M = re.search('M', protein_sequence) if M: query = protein_sequence[M.start():] temp = open("temp.ORF", "w") print >>temp, '>blasting' print >>temp, query temp.close() cline = blastp(query="'temp.ORF'", db="DB.blast.txt", evalue=0.01, outfmt=5, out=type + ".BLAST") os