From 7c283efe2b6a9eab77a4a2ca27e93df54b843f11 Mon Sep 17 00:00:00 2001 From: Matthew Clapp Date: Fri, 20 Sep 2019 16:16:30 -0700 Subject: [PATCH] Get cached venv metadata from pipxrc. Fixes #146 by allowing reinstall-all() to call uninstall() without breaking. --- src/pipx/commands.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pipx/commands.py b/src/pipx/commands.py index 07b3ea163a..145bb70c22 100644 --- a/src/pipx/commands.py +++ b/src/pipx/commands.py @@ -462,7 +462,7 @@ def uninstall(venv_dir: Path, package: str, local_bin_dir: Path, verbose: bool): venv = Venv(venv_dir, verbose=verbose) - metadata = venv.get_venv_metadata_for_package(package) + metadata = read_pipxrc(venv_dir)['venv_metadata'] app_paths = metadata.app_paths for dep_paths in metadata.app_paths_of_dependencies.values(): app_paths += dep_paths