Exemplo n.º 1
0
def main():
    args = docopt(__doc__)
    config = configuration.from_file(open(args['--config']))
    
    start = lambda: run(config, args['<engine>'], args['<store>'],
                                args['<dump_path>'], args['--logger'],
                                args['--threads'])
    
    try:
        if args['--profile']:
            stats = profile.runctx("start()", globals(), locals())
        else:
            start()
    finally:
        if args['--profile']:
            print(stats)
Exemplo n.º 2
0
def main():
    args = docopt(__doc__)
    config = configuration.from_file(open(args['--config']))
    
    run(config, args['<engine>'], sys.stdin)
Exemplo n.º 3
0
def main():
    args = docopt(__doc__)
    config = configuration.from_file(open(args['--config']))
    
    run(config, args['<daemon>'])