search for ultralytics
Some checks failed
ci / build (push) Failing after 0s
ci / Tests & Checks (push) Failing after 1s

This commit is contained in:
CJ_Clippy 2025-07-19 11:57:00 -08:00
parent 4a9a04ee86
commit 0718925d94

View File

@ -44,8 +44,8 @@ export async function preparePython() {
// This check can be customized to your specific condition (e.g., check a file or run `pip show yolo`)
let yoloExists = false;
try {
// Run `pip show yolov5` or your yolo package name to check if installed
await spawn(pipCmd, ["show", "yolov5"], { cwd: env.APP_DIR });
// Run `pip show ultralytics` or your yolo package name to check if installed
await spawn(pipCmd, ["show", "ultralytics"], { cwd: env.APP_DIR });
yoloExists = true;
} catch {
yoloExists = false;