fix(coding-agent/ipy): fixed pythonPath typo and removed unused pythonwPath field

- Fixed typo in gateway coordinator where pythonwPath was referenced instead of pythonPath.
- Removed unused pythonwPath field from PythonRuntime interface and consolidated python executable resolution to use windowless python path directly.
This commit is contained in:
can1357
2026-02-01 10:28:14 +01:00
parent b193bdcada
commit c52968a2f3
2 changed files with 3 additions and 7 deletions
@@ -251,7 +251,7 @@ async function startGatewayProcess(
const gatewayProcess = Bun.spawn(
[
runtime.pythonwPath,
runtime.pythonPath,
"-m",
"kernel_gateway",
"--KernelGatewayApp.ip=127.0.0.1",
+2 -6
View File
@@ -104,8 +104,6 @@ function resolvePathKey(env: Record<string, string | undefined>): string {
export interface PythonRuntime {
/** Path to python executable */
pythonPath: string;
/** Path to windowless python executable (pythonw.exe on Windows, same as pythonPath otherwise) */
pythonwPath: string;
/** Filtered environment variables */
env: Record<string, string | undefined>;
/** Path to virtual environment, if detected */
@@ -177,8 +175,7 @@ export function resolvePythonRuntime(cwd: string, baseEnv: Record<string, string
const currentPath = env[pathKey];
env[pathKey] = currentPath ? `${binDir}${path.delimiter}${currentPath}` : binDir;
return {
pythonPath: pythonCandidate,
pythonwPath: resolveWindowlessPython(pythonCandidate),
pythonPath: resolveWindowlessPython(pythonCandidate),
env,
venvPath,
};
@@ -190,8 +187,7 @@ export function resolvePythonRuntime(cwd: string, baseEnv: Record<string, string
throw new Error("Python executable not found on PATH");
}
return {
pythonPath,
pythonwPath: resolveWindowlessPython(pythonPath),
pythonPath: resolveWindowlessPython(pythonPath),
env,
venvPath: null,
};