def __enter__(self): self.copy_required_files() self.setup_server_logging() self.setup_routes() self.config = self.load_config() serve.set_computed_defaults(self.config) self.external_config, self.servers = serve.start(self.config) return self
def __enter__(self): self.copy_required_files() config = self.load_config() serve.set_computed_defaults(config) serve.logger = serve.default_logger("info") self.config, self.servers = serve.start(config) return self
def __enter__(self): self.copy_required_files() self.config = self.load_config() serve.set_computed_defaults(self.config) serve.logger = serve.default_logger("info") self.external_config, self.servers = serve.start(self.config) return self