Mercurial > repos > fubar > tool_factory_2
comparison toolfactory/rgToolFactory2.py @ 32:4d578c8c1613 draft
passes planemo test
author | fubar |
---|---|
date | Fri, 07 Aug 2020 23:14:54 -0400 |
parents | 6f48315c32c1 |
children | 5052ac89c036 |
comparison
equal
deleted
inserted
replaced
31:69eed330c91f | 32:4d578c8c1613 |
---|---|
29 import tarfile | 29 import tarfile |
30 import re | 30 import re |
31 import galaxyxml.tool as gxt | 31 import galaxyxml.tool as gxt |
32 import galaxyxml.tool.parameters as gxtp | 32 import galaxyxml.tool.parameters as gxtp |
33 import logging | 33 import logging |
34 | |
34 | 35 |
35 | 36 |
36 progname = os.path.split(sys.argv[0])[1] | 37 progname = os.path.split(sys.argv[0])[1] |
37 myversion = 'V2.1 July 2020' | 38 myversion = 'V2.1 July 2020' |
38 verbose = True | 39 verbose = True |
298 exe = self.args.exe_package | 299 exe = self.args.exe_package |
299 assert exe is not None, 'No interpeter or executable passed in to makeXML' | 300 assert exe is not None, 'No interpeter or executable passed in to makeXML' |
300 tool = gxt.Tool(self.args.tool_name, self.tool_id, | 301 tool = gxt.Tool(self.args.tool_name, self.tool_id, |
301 self.args.tool_version, self.args.tool_desc, exe) | 302 self.args.tool_version, self.args.tool_desc, exe) |
302 tool.command_line_override = self.xmlcl | 303 tool.command_line_override = self.xmlcl |
303 print('#### tool cl override=',self.xmlcl) | |
304 if interp: | 304 if interp: |
305 tool.interpreter = interp | 305 tool.interpreter = interp |
306 if self.args.help_text: | 306 if self.args.help_text: |
307 helptext = open(self.args.help_text, 'r').readlines() | 307 helptext = open(self.args.help_text, 'r').readlines() |
308 helptext = [html_escape(x) for x in helptext] | 308 helptext = [html_escape(x) for x in helptext] |