def _exclude_home(path_list):
    """Filter out any entries in a path list that are in my home directory.

    Used to disable per-user configuration.
    """
    home = os.path.expanduser('~/')
    for p in path_list:
        if not p.startswith(home):
            yield p
Filter out any entries in a path list that are in my home directory.

Used to disable per-user configuration.
jupyterhub/singleuser/extension.py