@@ -530,7 +530,7 @@ function comfyLauncher(): Plugin {
530530 const { execSync } = require ( 'child_process' )
531531 const paths = execSync ( 'where python' , { encoding : 'utf8' } ) . trim ( ) . split ( '\n' )
532532 const real = paths . find ( ( p ) => ! p . includes ( 'WindowsApps' ) )
533- return real ? ' + real.trim() + ' : 'python'
533+ return real ? '"' + real . trim ( ) + '" ' : 'python'
534534 } catch { return 'python' }
535535 } ) ( )
536536 const proc = spawn ( pythonBin , [ '-c' , code ] , {
@@ -984,7 +984,7 @@ function comfyLauncher(): Plugin {
984984 try {
985985 const paths = execSync ( 'where python' , { encoding : 'utf8' } ) . trim ( ) . split ( '\n' )
986986 const real = paths . find ( ( p : string ) => ! p . includes ( 'WindowsApps' ) )
987- return real ? ' + real.trim() + ' : 'python'
987+ return real ? '"' + real . trim ( ) + '" ' : 'python'
988988 } catch { return 'python' }
989989 } ) ( )
990990
@@ -1040,7 +1040,7 @@ function comfyLauncher(): Plugin {
10401040 try {
10411041 const paths = execSync ( 'where python' , { encoding : 'utf8' } ) . trim ( ) . split ( '\n' )
10421042 const real = paths . find ( ( p : string ) => ! p . includes ( 'WindowsApps' ) )
1043- return real ? ' + real.trim() + ' : 'python'
1043+ return real ? '"' + real . trim ( ) + '" ' : 'python'
10441044 } catch { return 'python' }
10451045 } ) ( )
10461046
0 commit comments