We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e162f3d commit ed38492Copy full SHA for ed38492
1 file changed
vite.config.ts
@@ -1067,10 +1067,12 @@ function comfyLauncher(): Plugin {
1067
)
1068
1069
// Use async spawn instead of execSync to avoid blocking the server
1070
+ // For spawn without shell, we need the raw unquoted path
1071
+ const rawPythonPath = pythonBin.replace(/^"|"$/g, '')
1072
const runWhisper = (scriptPath: string, timeoutMs: number): Promise<string> => {
1073
return new Promise((resolve, reject) => {
- const proc = spawn(pythonBin, [scriptPath], {
- shell: true,
1074
+ const proc = spawn(rawPythonPath, [scriptPath], {
1075
+ shell: false,
1076
stdio: ['ignore', 'pipe', 'pipe'],
1077
})
1078
let stdout = ''
0 commit comments