def __update_cleanup_paths(new_path):
    """
    Add the new path to the list of paths to clean up afterwards.

    Args:
        new_path: Path to the directory that need to be cleaned up.
    """
    cleanup_dirs = settings.CFG["cleanup_paths"].value
    cleanup_dirs = set(cleanup_dirs)
    cleanup_dirs.add(new_path)
    cleanup_dirs = list(cleanup_dirs)
    settings.CFG["cleanup_paths"] = cleanup_dirs
Add the new path to the list of paths to clean up afterwards.

    Args:
        new_path: Path to the directory that need to be cleaned up.