Skip to content

Commit

Permalink
Return Python from venv path and skip which() step
Browse files Browse the repository at this point in the history
  • Loading branch information
takluyver authored Jan 27, 2024
1 parent 847d53e commit 05133e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion flit/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def find_python_executable(python: Optional[str] = None) -> str:
for exe in ("bin/python", "Scripts/python.exe"):
py = os.path.join(python, exe)
if os.path.exists(py):
python = py
return os.path.abspath(py)
if os.path.isabs(python): # sys.executable is absolute too
return python
# get absolute filepath of {python}
Expand Down

0 comments on commit 05133e9

Please sign in to comment.