Files
ditto.site/.opencode/tools/_python.ts
T
2026-06-29 15:11:48 -07:00

9 lines
283 B
TypeScript

import { existsSync } from 'node:fs';
import { resolve } from 'node:path';
export function resolvePython(worktree: string): string {
const venvPython = resolve(worktree, '.opencode/scripts/.venv/bin/python');
if (existsSync(venvPython)) return venvPython;
return 'python3';
}