def main(local_run=False): u"""The main SDAPS interface routine. It initilizes all modules, parses the command line and passes control over to the selected function.""" init(local_run) import log log.activate_redirects() import add import annotate import boxgallery import convert import cover import csvdata import gui import ids import info import recognize import reorder import report import reporttex import setup import setuptex import stamp cmdline = script.parser.parse_args() cmdline = vars(cmdline) log.interactive('-'*78 + '\n') log.interactive(('- SDAPS -- %s' % cmdline['_name']) + '\n') log.interactive('-'*78 + '\n') return cmdline['_func'](cmdline)
def main(local_run=False): u"""The main SDAPS interface routine. It initilizes all modules, parses the command line and passes control over to the selected function.""" init(local_run) import log log.activate_redirects() import cmdline cmdline = script.parser.parse_args() cmdline = vars(cmdline) log.interactive('-'*78 + '\n') log.interactive(('- SDAPS -- %s' % cmdline['_name']) + '\n') log.interactive('-'*78 + '\n') return cmdline['_func'](cmdline)
def main(local_run=False): u"""The main SDAPS interface routine. It initilizes all modules, parses the command line and passes control over to the selected function.""" init(local_run) import log log.activate_redirects() import cmdline cmdline = script.parser.parse_args() cmdline = vars(cmdline) log.interactive('-' * 78 + '\n') log.interactive(('- SDAPS -- %s' % cmdline['_name']) + '\n') log.interactive('-' * 78 + '\n') return cmdline['_func'](cmdline)
def main(local_run=False): u"""The main SDAPS interface routine. It initilizes all modules, parses the command line and passes control over to the selected function.""" init(local_run) import log log.activate_redirects() import cmdline cmdline = script.parser.parse_args() cmdline = vars(cmdline) log.interactive('-'*78 + '\n') log.interactive(('- SDAPS -- %s' % cmdline['_name']) + '\n') log.interactive('-'*78 + '\n') try: return cmdline['_func'](cmdline) except: import traceback string = traceback.format_exc() sys.stderr.write(string) sys.exit(1)