Skip to content

Commit

Permalink
Get cached venv metadata from pipxrc.
Browse files Browse the repository at this point in the history
Fixes pypa#146 by allowing reinstall-all() to call uninstall()
without breaking.
  • Loading branch information
itsayellow committed Nov 4, 2019
1 parent eabb88f commit 7c283ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pipx/commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7c283ef

Please sign in to comment.