Skip to content

Commit

Permalink
Let self-managed pipx uninstall itself on windows again
Browse files Browse the repository at this point in the history
  • Loading branch information
guahki committed Jan 25, 2024
1 parent 10cbc9c commit 268c309
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
1 change: 1 addition & 0 deletions changelog.d/1203.bugfix.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Let self-managed pipx uninstall itself on windows again.
5 changes: 1 addition & 4 deletions src/pipx/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,7 @@ def rmdir(path: Path, safe_rm: bool = True) -> None:
return

logger.info(f"removing directory {path}")
try:
shutil.rmtree(path)
except FileNotFoundError:
pass
shutil.rmtree(path, ignore_errors=safe_rm)

# move it to be deleted later if it still exists
if path.is_dir():
Expand Down

0 comments on commit 268c309

Please sign in to comment.