예제 #1
0
파일: manage.py 프로젝트: 0xffea/iota
def main():
    command_opt = cfg.SubCommandOpt('command',
                                    title='Commands',
                                    help='Show available commands.',
                                    handler=add_command_parsers)

    CONF.register_cli_opt(command_opt)

    #service.prepare_service(default_config_files=['/etc/iota/iota.conf'])
    service.prepare_service()
    CONF.command.func()
예제 #2
0
파일: api.py 프로젝트: 0xffea/iota
def main():
    service.prepare_service(default_config_files=['/etc/iota/iota.conf'])
    app.build_server()