Skip to content

Commit 7701f8d

Browse files
authored
revert path quoting (#831)
1 parent 61b9069 commit 7701f8d

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

src/extension/common/python.ts

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -186,13 +186,8 @@ export async function getActiveEnvironmentPath(resource?: Resource): Promise<Env
186186
export async function getInterpreterDetails(resource?: Uri): Promise<IInterpreterDetails> {
187187
const api = await getPythonExtensionEnviromentAPI();
188188
const environment = await api.environments.resolveEnvironment(api.environments.getActiveEnvironmentPath(resource));
189-
const rawExecPath = environment?.executable.uri?.fsPath;
190-
if (rawExecPath) {
191-
let execPath = rawExecPath;
192-
if (rawExecPath.includes(' ') && !(rawExecPath.startsWith('"') && rawExecPath.endsWith('"'))) {
193-
execPath = `"${rawExecPath}"`;
194-
}
195-
return { path: [execPath], resource };
189+
if (environment?.executable.uri) {
190+
return { path: [environment?.executable.uri.fsPath], resource };
196191
}
197192
return { path: undefined, resource };
198193
}

0 commit comments

Comments
 (0)