Mercurial > repos > fubar > rglasso_1_9_8
comparison rgToolFactory.py @ 6:42637d352d09 draft
Uploaded
| author | fubar |
|---|---|
| date | Fri, 19 Dec 2014 17:03:32 -0500 |
| parents | 359c66be8677 |
| children | ef0297b352d8 |
comparison
equal
deleted
inserted
replaced
| 5:e9e354d64f8a | 6:42637d352d09 |
|---|---|
| 553 sto.write('## Toolfactory running %s as %s script\n' % (self.toolname,self.opts.interpreter)) | 553 sto.write('## Toolfactory running %s as %s script\n' % (self.toolname,self.opts.interpreter)) |
| 554 sto.flush() | 554 sto.flush() |
| 555 p = subprocess.Popen(self.cl,shell=False,stdout=sto,stderr=ste,stdin=subprocess.PIPE,cwd=self.opts.output_dir,env=my_env) | 555 p = subprocess.Popen(self.cl,shell=False,stdout=sto,stderr=ste,stdin=subprocess.PIPE,cwd=self.opts.output_dir,env=my_env) |
| 556 else: | 556 else: |
| 557 p = subprocess.Popen(self.cl,shell=False,stdin=subprocess.PIPE,env=my_env) | 557 p = subprocess.Popen(self.cl,shell=False,stdin=subprocess.PIPE,env=my_env) |
| 558 p.stdin.write(self.script) | 558 # p.stdin.write(self.script) |
| 559 print >> p.stdin, self.script | |
| 559 p.stdin.close() | 560 p.stdin.close() |
| 560 retval = p.wait() | 561 retval = p.wait() |
| 561 if self.opts.output_dir: | 562 if self.opts.output_dir: |
| 562 sto.close() | 563 sto.close() |
| 563 ste.close() | 564 ste.close() |
