From d7eb580e99e5253e9fd2e4ffe7350c1e12e07768 Mon Sep 17 00:00:00 2001 From: kingbri <8082010+kingbri1@users.noreply.github.com> Date: Thu, 21 Aug 2025 18:23:42 -0400 Subject: [PATCH] Start: Fix uv check In Windows, checking for a command yields a FileNotFound error if the utility isn't found. This led to complicated logic which can be solved by using which instead. Signed-off-by: kingbri <8082010+kingbri1@users.noreply.github.com> --- start.py | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/start.py b/start.py index 6b7130c..95bdd36 100644 --- a/start.py +++ b/start.py @@ -8,15 +8,11 @@ import platform import subprocess import sys import traceback -from shutil import copyfile +from shutil import copyfile, which from typing import List -has_uv = ( - subprocess.run( - ["uv", "--version"], stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL - ).returncode - == 0 -) +# Checks for uv installation +has_uv = which("uv") is not None start_options = {}