File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed
src/ducktools/pythonfinder/win32 Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -72,4 +72,6 @@ def get_pyenv_pythons(
7272 executable = os .path .join (p .path , "python.exe" )
7373
7474 if os .path .exists (executable ):
75- yield finder .get_install_details (executable , managed_by = "pyenv" )
75+ install = finder .get_install_details (executable , managed_by = "pyenv" )
76+ if install :
77+ yield install
Original file line number Diff line number Diff line change @@ -113,11 +113,13 @@ def get_registered_pythons(finder: DetailFinder | None = None) -> Iterator[Pytho
113113 if python_path :
114114 # Pyenv puts architecture information in the Version value for some reason
115115 if os .path .isfile (python_path ):
116- yield finder .get_install_details (
116+ details = finder .get_install_details (
117117 python_path ,
118118 managed_by = metadata ["Company" ],
119119 metadata = metadata ,
120120 )
121+ if details :
122+ yield details
121123
122124 finally :
123125 if base_key :
You can’t perform that action at this time.
0 commit comments