def __init__(self, rawargs, data, formfields, progname, webform, rpc): self.rawargs = rawargs self.data = data self.formfields = formfields # if the user renames the script file or the # web client, use their new names self.progname = os.path.split(progname)[-1] # flags that indicate origin of input self.webform = webform self.rpc = rpc self.optionparser = options.getParser() self.options = dict(common.settings) # data obtained from the proper source go here self.data_string = None
def help_text(progname="mol2chemfig", version=program_version): msg = _help_blurb % locals() msg += getParser().format_help(indent=32, linewidth=75, separator='') return msg