'Identify all local environments that are not needed to build requirements_status.
We try to resolve the requirements, and we note every environment_path that has been taken.'

def unused_dependency_paths(self, toolbox_requirements_status):

    used_paths = set()
    for dependencies in toolbox_requirements_status.values():
        for dependency in dependencies:
            if (dependency.get('dependency_type') == 'conda'):
                path = os.path.basename(dependency['environment_path'])
                used_paths.add(path)
    dir_contents = set((os.listdir(self.conda_context.envs_path) if os.path.exists(self.conda_context.envs_path) else []))
    unused_paths = dir_contents.difference(used_paths)
    unused_paths = [os.path.join(self.conda_context.envs_path, p) for p in unused_paths]
    return unused_paths
