From 10d15dee7c61088ef811ff9e8b404679ebaf4bb5 Mon Sep 17 00:00:00 2001 From: eleanorjboyd <26030610+eleanorjboyd@users.noreply.github.com> Date: Fri, 10 Oct 2025 10:27:40 -0700 Subject: [PATCH] revert path quoting --- src/extension/common/python.ts | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/src/extension/common/python.ts b/src/extension/common/python.ts index 7043fe63..4ec05b86 100644 --- a/src/extension/common/python.ts +++ b/src/extension/common/python.ts @@ -186,13 +186,8 @@ export async function getActiveEnvironmentPath(resource?: Resource): Promise { const api = await getPythonExtensionEnviromentAPI(); const environment = await api.environments.resolveEnvironment(api.environments.getActiveEnvironmentPath(resource)); - const rawExecPath = environment?.executable.uri?.fsPath; - if (rawExecPath) { - let execPath = rawExecPath; - if (rawExecPath.includes(' ') && !(rawExecPath.startsWith('"') && rawExecPath.endsWith('"'))) { - execPath = `"${rawExecPath}"`; - } - return { path: [execPath], resource }; + if (environment?.executable.uri) { + return { path: [environment?.executable.uri.fsPath], resource }; } return { path: undefined, resource }; }