示例#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)
def main():
    args = docopt(__doc__)
    config = configuration.from_file(open(args['--config']))
    
    run(config, args['<engine>'], sys.stdin)
示例#3
0
def main():
    args = docopt(__doc__)
    config = configuration.from_file(open(args['--config']))
    
    run(config, args['<daemon>'])