Skip to content

Commit 7ec224c

Browse files
committed
revert path quoting (microsoft#831)
1 parent 4e30462 commit 7ec224c

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
@@ -115,13 +115,8 @@ export async function getActiveEnvironmentPath(resource?: Resource) {
115115
export async function getInterpreterDetails(resource?: Uri): Promise<IInterpreterDetails> {
116116
const api = await getPythonExtensionEnviromentAPI();
117117
const environment = await api.environments.resolveEnvironment(api.environments.getActiveEnvironmentPath(resource));
118-
const rawExecPath = environment?.executable.uri?.fsPath;
119-
if (rawExecPath) {
120-
let execPath = rawExecPath;
121-
if (rawExecPath.includes(' ') && !(rawExecPath.startsWith('"') && rawExecPath.endsWith('"'))) {
122-
execPath = `"${rawExecPath}"`;
123-
}
124-
return { path: [execPath], resource };
118+
if (environment?.executable.uri) {
119+
return { path: [environment?.executable.uri.fsPath], resource };
125120
}
126121
return { path: undefined, resource };
127122
}

0 commit comments

Comments
 (0)