def _get_package_path(name):
    """Returns the path to a package or cwd if that cannot be found."""
    try:
        return os.path.abspath(os.path.dirname(sys.modules[name].__file__))
    except (KeyError, __HOLE__):
        return os.getcwd()
dataset/ETHPy150Open hhstore/flask-annotated/flask-0.5/flask/helpers.py/_get_package_path