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:
@@ -251,7 +251,7 @@ async function startGatewayProcess(
|
||||
|
||||
const gatewayProcess = Bun.spawn(
|
||||
[
|
||||
runtime.pythonwPath,
|
||||
runtime.pythonPath,
|
||||
"-m",
|
||||
"kernel_gateway",
|
||||
"--KernelGatewayApp.ip=127.0.0.1",
|
||||
|
||||
@@ -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,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user