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: quote Python paths with spaces on Windows (Program Files)

PurpleDoubleD7eb4abd362bd
diff --git a/vite.config.ts b/vite.config.ts
index 1ee2a0d7..4ebdc128 100644
--- a/vite.config.ts
+++ b/vite.config.ts
@@ -530,7 +530,7 @@ function comfyLauncher(): Plugin {
const { execSync } = require('child_process')
const paths = execSync('where python', { encoding: 'utf8' }).trim().split('\n')
const real = paths.find((p) => !p.includes('WindowsApps'))
- return real ? real.trim() : 'python'
+ return real ? ' + real.trim() + ' : 'python'
} catch { return 'python' }
})()
const proc = spawn(pythonBin, ['-c', code], {
@@ -984,7 +984,7 @@ function comfyLauncher(): Plugin {
try {
const paths = execSync('where python', { encoding: 'utf8' }).trim().split('\n')
const real = paths.find((p: string) => !p.includes('WindowsApps'))
- return real ? real.trim() : 'python'
+ return real ? ' + real.trim() + ' : 'python'
} catch { return 'python' }
})()
@@ -1040,7 +1040,7 @@ function comfyLauncher(): Plugin {
try {
const paths = execSync('where python', { encoding: 'utf8' }).trim().split('\n')
const real = paths.find((p: string) => !p.includes('WindowsApps'))
- return real ? real.trim() : 'python'
+ return real ? ' + real.trim() + ' : 'python'
} catch { return 'python' }
})()