from flask import Flask from .controllers.top import top_bp import os def create_app(): app = Flask( 'Muspah', template_folder=os.path.join(os.path.dirname(__file__), 'templates'), static_folder=os.path.join(os.path.dirname(__file__), '..', 'static'), instance_relative_config=True ) app.register_blueprint(top_bp) return app