<filename>src/python/ws/app.py<gh_stars>0
from flask import Flask

from src.python.ws.home import root


def create_app(config_filename="src.python.ws.conf.BaseConfig"):
    """
    Create flask app using config Object.

    Args:
        config_filename : str : Absolute path to congif object.

    Returns:
        return flask app configured by config_filenxame

    """
    app = Flask(__name__)
    app.config.from_object(config_filename)

    app.register_blueprint(root)

    return app
