def get_static_folder(app_or_blueprint):
    if not hasattr(app_or_blueprint, 'static_folder'):
        # I believe this is for app objects in very old Flask
        # versions that did not support ccustom static folders.
        return path.join(app_or_blueprint.root_path, 'static')

    if not app_or_blueprint.has_static_folder:
        # Use an exception type here that is not hidden by spit_prefix.
        raise TypeError(('The referenced blueprint %s has no static '
                         'folder.') % app_or_blueprint)
    return app_or_blueprint.static_folder
Initializer.
dataset/ETHPy150Open miracle2k/flask-assets/src/flask_assets.py/get_static_folder--crossover with--dataset/ETHPy150Open taoliu/MACS/MACS2/IO/BinKeeper.py/BinKeeperII.__init__