comparison rgedgeR/rgToolFactory.py @ 21:1fe9db11189b draft

Uploaded
author fubar
date Sat, 27 Jul 2013 20:59:23 -0400
parents 42c28d9fc836
children
comparison
equal deleted inserted replaced
20:42c28d9fc836 21:1fe9db11189b
518 if self.opts.output_dir: 518 if self.opts.output_dir:
519 ste = open(self.elog,'w') 519 ste = open(self.elog,'w')
520 sto = open(self.tlog,'w') 520 sto = open(self.tlog,'w')
521 sto.write('## Toolfactory generated command line = %s\n' % ' '.join(self.cl)) 521 sto.write('## Toolfactory generated command line = %s\n' % ' '.join(self.cl))
522 sto.flush() 522 sto.flush()
523 p = subprocess.Popen(self.cl,shell=False,stdout=sto,stderr=elog,stdin=subprocess.PIPE,cwd=self.opts.output_dir) 523 p = subprocess.Popen(self.cl,shell=False,stdout=sto,stderr=ste,stdin=subprocess.PIPE,cwd=self.opts.output_dir)
524 else: 524 else:
525 p = subprocess.Popen(self.cl,shell=False,stdin=subprocess.PIPE) 525 p = subprocess.Popen(self.cl,shell=False,stdin=subprocess.PIPE)
526 p.stdin.write(self.script) 526 p.stdin.write(self.script)
527 p.stdin.close() 527 p.stdin.close()
528 retval = p.wait() 528 retval = p.wait()