import os from flask import Flask def create_app(use_config=None): app = Flask(__name__) if use_config: app.config.from_mapping(**use_config) from webui.service.main.routes import main app.register_blueprint(main) from webui.service.service.routes import service app.register_blueprint(service) return app