Code generator function, parse user arguments and load appropriate
template module. Once loaded, run its data method depending on
user requested input parameter, e.g. print_etags, print_tags or
generate template code.
Definition at line 82 of file main.py.
References utils.code_generator(), parse_args(), edm.print(), and utils.test_env().
84 Code generator function, parse user arguments and load appropriate 85 template module. Once loaded, run its data method depending on 86 user requested input parameter, e.g. print_etags, print_tags or 87 generate template code. 90 opts, args = optmgr.get_opt()
91 test_env(os.path.join(opts.tdir, opts.tmpl), opts.tmpl)
92 config = {
'pname': opts.pname,
'tmpl': opts.tmpl,
'author': opts.author,
94 'ftype': opts.ftype,
'tmpl_dir': opts.tdir}
96 etags = opts.ketags.split(
',')
97 config.update({
'tmpl_etags': etags})
99 config.update({
'tmpl_etags': []})
108 for name
in os.listdir(opts.tdir):
S & print(S &os, JobReport::InputFile const &f)