File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 4
4
from .models import SystemPath
5
5
from .pythonfinder import Finder
6
6
7
- __version__ = "2.0.2 "
7
+ __version__ = "2.0.3 "
8
8
9
9
10
10
__all__ = ["Finder" , "SystemPath" , "InvalidPythonVersion" ]
Original file line number Diff line number Diff line change @@ -462,14 +462,14 @@ def alternate_sub_finder(obj):
462
462
found_version = sub_finder (path )
463
463
if found_version :
464
464
return found_version
465
- if alternate_sub_finder :
465
+ if name and not ( minor or patch or pre or dev or arch or major ) :
466
466
for path in paths :
467
467
found_version = alternate_sub_finder (path )
468
468
if found_version :
469
469
return found_version
470
470
471
471
ver = next (iter (self .get_pythons (sub_finder )), None )
472
- if not ver and alternate_sub_finder is not None :
472
+ if not ver and name and not ( minor or patch or pre or dev or arch or major ) :
473
473
ver = next (iter (self .get_pythons (alternate_sub_finder )), None )
474
474
475
475
if ver :
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ plette[validation]==0.4.4
12
12
ptyprocess==0.7.0
13
13
pydantic==1.10.7
14
14
python-dotenv==1.0.0
15
- pythonfinder==2.0.2
15
+ pythonfinder==2.0.3
16
16
requirementslib==2.3.0
17
17
ruamel.yaml==0.17.21
18
18
shellingham==1.5.0.post1
You can’t perform that action at this time.
0 commit comments