Mercurial > repos > fubar > toolfactory
comparison rgToolFactory.py @ 45:7b34711416d2 draft
Uploaded
| author | fubar |
|---|---|
| date | Sun, 01 Mar 2015 05:57:52 -0500 |
| parents | 8d28e32c71ff |
| children |
comparison
equal
deleted
inserted
replaced
| 44:417cba94d862 | 45:7b34711416d2 |
|---|---|
| 643 """ | 643 """ |
| 644 if self.treatbashSpecial and self.opts.interpreter in ['bash','sh']: | 644 if self.treatbashSpecial and self.opts.interpreter in ['bash','sh']: |
| 645 retval = self.runBash() | 645 retval = self.runBash() |
| 646 else: | 646 else: |
| 647 if self.opts.output_dir: | 647 if self.opts.output_dir: |
| 648 ste = open(self.elog,'w') | 648 ste = open(self.elog,'a') |
| 649 sto = open(self.tlog,'w') | 649 sto = open(self.tlog,'a') |
| 650 sto.write('## Toolfactory generated command line = %s\n' % ' '.join(self.cl)) | 650 sto.write('## Toolfactory generated command line = %s\n' % ' '.join(self.cl)) |
| 651 sto.flush() | 651 sto.flush() |
| 652 p = subprocess.Popen(self.cl,shell=False,stdout=sto,stderr=ste,stdin=subprocess.PIPE,cwd=self.opts.output_dir) | 652 p = subprocess.Popen(self.cl,shell=False,stdout=sto,stderr=ste,stdin=subprocess.PIPE,cwd=self.opts.output_dir) |
| 653 else: | 653 else: |
| 654 p = subprocess.Popen(self.cl,shell=False,stdin=subprocess.PIPE) | 654 p = subprocess.Popen(self.cl,shell=False,stdin=subprocess.PIPE) |
