From 50c8ee517525bb253ed916a43100795223f4ae98 Mon Sep 17 00:00:00 2001 From: Alex Waygood Date: Tue, 3 Sep 2024 14:35:45 +0100 Subject: [PATCH] Fix virtual environment details in `knot_benchmark` (#13228) --- scripts/knot_benchmark/src/benchmark/cases.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/knot_benchmark/src/benchmark/cases.py b/scripts/knot_benchmark/src/benchmark/cases.py index 3559fec972..e0930a4992 100644 --- a/scripts/knot_benchmark/src/benchmark/cases.py +++ b/scripts/knot_benchmark/src/benchmark/cases.py @@ -133,8 +133,8 @@ class Pyright(Tool): def cold_command(self, project: Project, venv: Venv) -> Command: command = [ str(self.path), - "--venvpath", "--threads", + "--venvpath", str( venv.path.parent ), # This is not the path to the venv folder, but the folder that contains the venv... @@ -201,6 +201,8 @@ class Venv: "uv", "pip", "install", + "--python", + self.python, "--quiet", *dependencies, ]