defaultProbe (lib/python.mjs)

sickn33/antigravity-awesome-skills · skills/media-use/audio/scripts/lib/python.mjs · javascript · MIT
voice

python.mjs — resolve which Python 3 executable to spawn, per platform. The audio engine (tts.mjs, bgm.mjs) shells out to `python3` for ElevenLabs TTS and the local Lyria/MusicGen BGM paths. `python3` is the right name on macOS/Linux, but on Windows the python.org installer only c

// Source: https://github.com/sickn33/agentic-awesome-skills | License: MIT | Copyright 2026 Antigravity User
// Provided via justclaw.it.com; keep this notice with the code.
// python.mjs — resolve which Python 3 executable to spawn, per platform.
//
// The audio engine (tts.mjs, bgm.mjs) shells out to `python3` for ElevenLabs
// TTS and the local Lyria/MusicGen BGM paths. `python3` is the right name on
// macOS/Linux, but on Windows the python.org installer only creates
// `python.exe` plus the `py` launcher — there is no `python3.exe` (only the
// Microsoft Store build adds one). So a bare `spawn("python3", …)` ENOENTs on a
// standard Windows Python install, silently disabling every Python-backed audio
// feature until the user hand-creates a `python3.exe` shim (reported twice).
//
// 

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key