Skip to content

Commit

Permalink
fix: resolve the DEFAULT_PYTHON to the actual absolute path (#1340)
Browse files Browse the repository at this point in the history
  • Loading branch information
huxuan authored Apr 11, 2024
1 parent 331c619 commit 49c9983
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions changelog.d/965.bugfix.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Resolve the `DEFAULT_PYTHON` to the actual absolute path
2 changes: 1 addition & 1 deletion src/pipx/interpreter.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ def _get_sys_executable() -> str:
if WINDOWS:
return _find_default_windows_python()
else:
return sys.executable
return str(Path(sys.executable).resolve())


def _get_absolute_python_interpreter(env_python: str) -> str:
Expand Down

0 comments on commit 49c9983

Please sign in to comment.