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 1a9d873 commit 2629280Copy full SHA for 2629280
setuptools/msvc.py
@@ -1406,11 +1406,11 @@ def VCRuntimeRedist(self):
1406
)
1407
1408
# vcruntime path
1409
- for prefix, crt_dir in itertools.product(prefixes, crt_dirs):
1410
- path = join(prefix, arch_subdir, crt_dir, vcruntime)
1411
- if isfile(path):
1412
- return path
1413
- return None
+ candidate_paths = (
+ join(prefix, arch_subdir, crt_dir, vcruntime)
+ for (prefix, crt_dir) in itertools.product(prefixes, crt_dirs)
+ )
+ return next(filter(isfile, candidate_paths), None)
1414
1415
def return_env(self, exists=True):
1416
"""
0 commit comments