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.
TypeScript agentai-chatai-studioall-in-onecoding-agentdesktop-appfluximage-generationlinuxllmlocal-ailocal-llmopen-sourceprivacyself-hostedstable-diffusionuncensoreduncensored-aivideo-generationwindows
import { execSync } from 'child_process'
/**
* Der Python-Interpreter dieses Rechners.
*
* Eigenes Modul, weil ihn ZWEI Dinge brauchen, die sonst nichts miteinander zu
* tun haben: der ComfyUI-Starter und der Whisper-Server. In eines von beiden
* gelegt, hinge das andere daran.
*/
// Shared Python binary resolver — filters Windows Store alias, caches result
export const pythonBin = (() => {
if (process.platform !== 'win32') return 'python3'
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'
} catch { return 'python' }
})()
console.log(`[Python] Resolved: ${pythonBin}`)