From 0cb641e3c571281e414f13fd3ba45344903f8273 Mon Sep 17 00:00:00 2001 From: Pedro Algarvio Date: Fri, 15 Mar 2019 11:38:10 +0000 Subject: [PATCH] Fix static requirements search bad logic --- noxfile.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/noxfile.py b/noxfile.py index 6ee0ee6d33..100b1ed64a 100644 --- a/noxfile.py +++ b/noxfile.py @@ -65,8 +65,9 @@ def _install_requirements(session, *extra_requirements): # Install requirements distro_requirements = None for distro_key in distro_keys: - distro_requirements = os.path.join(REPO_ROOT, 'requirements', 'static', '{}.txt'.format(distro_key)) - if os.path.exists(distro_requirements): + _distro_requirements = os.path.join(REPO_ROOT, 'requirements', 'static', '{}.txt'.format(distro_key)) + if os.path.exists(_distro_requirements): + distro_requirements = _distro_requirements break if distro_requirements is not None: _requirements_files = [distro_requirements]