Mercurial > repos > fubar > toolfactory
changeset 24:f87139fe5e09 draft
fix for py script parsing
author | fubar |
---|---|
date | Sun, 27 Jul 2014 22:41:41 -0400 |
parents | 8aab0f66cd5f |
children | ae6cc5ee2612 |
files | rgToolFactory.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/rgToolFactory.py Tue Mar 25 22:17:20 2014 -0400 +++ b/rgToolFactory.py Sun Jul 27 22:41:41 2014 -0400 @@ -159,7 +159,7 @@ self.xmlfile = '%s.xml' % self.toolname s = open(self.opts.script_path,'r').readlines() s = [x.rstrip() for x in s] # remove pesky dos line endings if needed - s = [x.lstrip() for x in s] # and left padding + # s = [x.lstrip() for x in s] # and left padding self.script = '\n'.join(s) fhandle,self.sfile = tempfile.mkstemp(prefix=self.toolname,suffix=".%s" % (opts.interpreter)) tscript = open(self.sfile,'w') # use self.sfile as script source for Popen