def run(): options = parse_options() sxmain.configure_logging(options) def create_app(): return App( synchronous_check=options.synchronous_check, ) sxmain.run_app(create_app)
def run(): options = parse_options() if options.print_default_config: from pprint import pprint pprint(StatusBar.default_config) return sxmain.configure_logging(options) def create_app(): return App(synchronous_check=options.synchronous_check, config_path=options.configpath) sxmain.run_app(create_app)
def run(): options = parse_options() if options.print_default_config: from pprint import pprint pprint(StatusBar.default_config) return sxmain.configure_logging(options) def create_app(): return App( synchronous_check=options.synchronous_check, double_buf=options.double_buf, #config_path=options.configpath, ) if options.profile: import cProfile as profile profile.runctx('sxmain.run_app(create_app)', globals(), locals()) else: sxmain.run_app(create_app)