From 5d5762ac20a7a2e23630da5d41018d00992304a8 Mon Sep 17 00:00:00 2001 From: Matt Kafonek Date: Mon, 28 Jul 2025 03:48:35 -0400 Subject: [PATCH] swap out python to sys.executable to support uv tool install workflows (#544) --- model_server/src/cli.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/model_server/src/cli.py b/model_server/src/cli.py index 5245873e..d0d9e9e1 100644 --- a/model_server/src/cli.py +++ b/model_server/src/cli.py @@ -72,7 +72,7 @@ def start_server(port=51000, foreground=False): if foreground: process = subprocess.Popen( [ - "python", + sys.executable, "-m", "uvicorn", "src.main:app", @@ -85,7 +85,7 @@ def start_server(port=51000, foreground=False): else: process = subprocess.Popen( [ - "python", + sys.executable, "-m", "uvicorn", "src.main:app",