def main(args=None): from neo.master.app import Application config = Application.option_parser.parse(args) # setup custom logging logging.setup(config.get('logfile')) # and then, load and run the application app = Application(config) app.run()
def main(args=None): # build configuration dict from command line options (options, args) = parser.parse_args(args=args) config = ConfigurationManager(defaults, options, 'master') # setup custom logging logging.setup(config.getLogfile()) # and then, load and run the application from neo.master.app import Application app = Application(config) app.run()