We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6ffe9ba commit a3f514cCopy full SHA for a3f514c
1 file changed
src/findpython/providers/rye.py
@@ -6,7 +6,7 @@
6
7
from findpython.providers.base import BaseProvider
8
from findpython.python import PythonVersion
9
-from findpython.utils import safe_iter_dir
+from findpython.utils import WINDOWS, safe_iter_dir
10
11
12
class RyeProvider(BaseProvider):
@@ -25,6 +25,9 @@ def find_pythons(self) -> t.Iterable[PythonVersion]:
25
for child in safe_iter_dir(py_root):
26
if child.is_symlink(): # registered an existing python
27
continue
28
- python_bin = child / "install/bin/python3"
+ if WINDOWS:
29
+ python_bin = child / "install/python.exe"
30
+ else:
31
+ python_bin = child / "install/bin/python3"
32
if python_bin.exists():
33
yield self.version_maker(python_bin, _interpreter=python_bin)
0 commit comments