This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
import pkgutil | |
import importlib | |
from flask import Blueprint | |
def register_blueprints(app, module_prefix, package_path): | |
"""Register all Blueprint instances on the specified Flask application found | |
in all modules for the specified package. |
NewerOlder