@property
    def config(self):
        """
        This gets the current configuration. By default, it looks up the
        current application and gets the configuration from there. But if you
        don't want to go to the full effort of setting an application, or it's
        otherwise outside of a request context, set the `_config` attribute to
        an `UploadConfiguration` instance, then set it back to `None` when
        you're done.
        """
        if self._config is not None:
            return self._config
        try:
            return current_app.upload_set_config[self.name]
        except __HOLE__:
            raise RuntimeError("cannot access configuration outside request")
dataset/ETHPy150Open jeffwidman/flask-uploads/flask_uploads.py/UploadSet.config