diff rgToolFactory.py @ 24:f87139fe5e09 draft

fix for py script parsing
author fubar
date Sun, 27 Jul 2014 22:41:41 -0400
parents 2983106e1460
children
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