def _get_package_path(name):
    try:
        return os.path.abspath(os.path.dirname(sys.modules[name].__file__))
    except (KeyError, AttributeError):
        return os.getcwd()
Decorator to ensure a user has been authenticated with the given oauth2 provider.
dataset/ETHPy150Open hhstore/flask-annotated/flask-0.5/flask/helpers.py/_get_package_path--crossover with--dataset/ETHPy150Open tethysplatform/tethys/tethys_services/utilities.py/ensure_oauth2