Skip to content

Commit

Permalink
Revert "Update *Edit this page* link" (#788)
Browse files Browse the repository at this point in the history
  • Loading branch information
gaborbernat committed Jan 3, 2022
1 parent 9d24fb9 commit b118a9f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
1 change: 0 additions & 1 deletion mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ google_analytics:
- 'auto'
repo_name: pypa/pipx
repo_url: https://github.com/pypa/pipx
edit_uri: edit/main/docs/

nav:
- Home: "index.md"
Expand Down
8 changes: 2 additions & 6 deletions src/pipx/commands/reinstall.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,10 @@ def reinstall(
return EXIT_CODE_REINSTALL_VENV_NONEXISTENT

try:
# use PurePath.relative_to in a try block instead
# of PurePath.is_relative_to, for python 3.6-3.8 compatability
Path(python).relative_to(venv_dir)
python_relative_to_venv_dir = True
except ValueError:
python_relative_to_venv_dir = False

if python_relative_to_venv_dir:
pass
else:
print(
f"{error} Error, the python executable would be deleted!",
"Change it using the --python option or PIPX_DEFAULT_PYTHON environment variable.",
Expand Down

0 comments on commit b118a9f

Please sign in to comment.