We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6402de0 commit efb8bbfCopy full SHA for efb8bbf
src/poetry/utils/env/python/manager.py
@@ -103,8 +103,9 @@ def get_active_python(cls) -> Python | None:
103
for python in ShutilWhichPythonProvider().find_pythons():
104
return cls(python=python)
105
106
- # fallback to findpython
107
- if python := findpython.find():
+ # fallback to findpython, restrict to finding only executables
+ # named "python" as the intention here is just that, nothing more
108
+ if python := findpython.find("python"):
109
110
111
return None
0 commit comments