# HG changeset patch # User fubar # Date 1395575217 14400 # Node ID 4bfe405f76ed5d501c715794e5fe01ebdaa7917a # Parent a986c9f88d38f45cf95a5676bc50c20fbe1f03cf Uploaded diff -r a986c9f88d38 -r 4bfe405f76ed rgToolFactory.py --- a/rgToolFactory.py Sun Mar 23 07:28:32 2014 -0400 +++ b/rgToolFactory.py Sun Mar 23 07:46:57 2014 -0400 @@ -255,7 +255,9 @@ %(script)s + %(tooltests)s + %(help)s @@ -267,25 +269,36 @@ %(toolname)s.py --script_path "$runMe" --interpreter "%(interpreter)s" --tool_name "%(toolname)s" %(command_inputs)s %(command_outputs)s """ # may NOT be an input or htmlout - tooltestsTabOnly = """ + tooltestsTabOnly = """ + + - """ - tooltestsHTMLOnly = """ + + + """ + tooltestsHTMLOnly = """ + + - """ - tooltestsBoth = """ + + + """ + tooltestsBoth = """ + - """ + + + """ xdict = {} xdict['requirements'] = '' if self.opts.make_HTML: @@ -304,8 +317,8 @@ # configfile is least painful way to embed script to avoid external dependencies # but requires escaping of <, > and $ to avoid Mako parsing if self.opts.help_text: - xdict['help'] = open(self.opts.help_text,'r').read() - xdict['help'] = '\n'.join([x.lstrip(x) for x in xdict['help']]) + xdict['help'] = open(self.opts.help_text,'r').readlines() + xdict['help'] = ''.join([x.lstrip(x) for x in xdict['help']]) else: xdict['help'] = 'Please ask the tool author for help as none was supplied at tool generation\n' coda = ['**Script**','Pressing execute will run the following code over your input file and generate some outputs in your history::']