Skip to content

Commit

Permalink
Use shutil.move() instead of rename() when moving extracted Python (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
dukecat0 authored Feb 25, 2024
1 parent ec3c88a commit 6555533
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pipx/standalone_python.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ def download_python_build_standalone(python_version: str):
# under a directory named 'python'. We move it to the install
# directory
extracted_dir = download_dir / "python"
extracted_dir.rename(install_dir)
shutil.move(extracted_dir, install_dir)

return str(installed_python)

Expand Down

0 comments on commit 6555533

Please sign in to comment.