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: cross-platform python binary detection for code execution

PurpleDoubleD56653042fdc5
diff --git a/vite.config.ts b/vite.config.ts
index f048ff33..68dfdadb 100644
--- a/vite.config.ts
+++ b/vite.config.ts
@@ -523,7 +523,7 @@ function comfyLauncher(): Plugin {
let stderr = ''
let killed = false
- const proc = spawn('python3', ['-c', code], {
+ const proc = spawn(process.platform === 'win32' ? 'python' : 'python3', ['-c', code], {
cwd: tmpDir,
stdio: ['ignore', 'pipe', 'pipe'],
shell: false,