diff --git a/noxfile.py b/noxfile.py index 141112523..474fd7143 100644 --- a/noxfile.py +++ b/noxfile.py @@ -343,7 +343,7 @@ def bundle(session: nox.Session): # Pick only the shortest named executable. # All the longer ones should be for different versions, the shortest one will be the latest stable. - executable = min(str(path) for path in pathlib.Path('dist').glob('*')) + executable = min([str(path) for path in pathlib.Path('dist').glob('*')], key=lambda path: len(path)) print(f'sut_path={executable}')