diff --git a/scripts/dev/build_release.py b/scripts/dev/build_release.py index 7c1f77a1d..073b9a58e 100755 --- a/scripts/dev/build_release.py +++ b/scripts/dev/build_release.py @@ -62,6 +62,7 @@ def call_tox(toxenv, *args, python=sys.executable): """ env = os.environ.copy() env['PYTHON'] = python + env['PATH'] = os.environ['PATH'] + os.pathsep + os.path.dirname(python) subprocess.check_call( [sys.executable, '-m', 'tox', '-v', '-e', toxenv] + list(args), env=env)