Skip to content

The all-in-one local AI studio for your desktop: chat, image and video generation and a coding agent in one free, open source app. Windows and Linux. No Docker, no terminal, no cloud required.

fix(install): update B1's source-scanning guards for chosen_python

purple80dec7478d32
diff --git a/src-tauri/src/commands/install/comfy_install.rs b/src-tauri/src/commands/install/comfy_install.rs
index e891ba74..6d9477b3 100644
--- a/src-tauri/src/commands/install/comfy_install.rs
+++ b/src-tauri/src/commands/install/comfy_install.rs
@@ -842,7 +842,7 @@ mod tests {
let src = include_str!("comfy_install.rs");
let needle = |head: &str, tail: &str| format!("{head}{tail}");
- let build = needle("create_comfyui_venv(&target_dir, &python_bin,", " Some(&cancel_flag))");
+ let build = needle("create_comfyui_venv(&target_dir, &chosen_python,", " Some(&cancel_flag))");
let cancelled_arm = needle("\"Install cancelled while the venv", " was being created.\"");
let failed_arm = needle("\"venv creation faile", "d.\\n\\n{}\"");
diff --git a/src-tauri/src/commands/install/comfy_repair.rs b/src-tauri/src/commands/install/comfy_repair.rs
index a92b67dc..68c7c99b 100644
--- a/src-tauri/src/commands/install/comfy_repair.rs
+++ b/src-tauri/src/commands/install/comfy_repair.rs
@@ -877,7 +877,7 @@ mod tests {
let removal = needle("\"Removing the old venv (models, outputs", " and custom nodes stay untouched)...\",");
let check = needle("update(\"cancelled\", \"Repair cance", "lled.\");");
let step_one = needle("\"Step 1/4: Creating a fresh isolated venv", " inside the ComfyUI folder...\",");
- let build = needle("create_comfyui_venv(&comfy_dir, &python_bin,", " Some(&cancel_flag))");
+ let build = needle("create_comfyui_venv(&comfy_dir, &chosen_python,", " Some(&cancel_flag))");
let at_removal = src.find(&removal).expect("the venv removal step is gone");
let at_check = src.find(&check).expect("the repair no longer stops between the delete and the venv build");