File tree Expand file tree Collapse file tree 1 file changed +2
-7
lines changed Expand file tree Collapse file tree 1 file changed +2
-7
lines changed Original file line number Diff line number Diff line change @@ -186,13 +186,8 @@ export async function getActiveEnvironmentPath(resource?: Resource): Promise<Env
186186export 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}
You can’t perform that action at this time.
0 commit comments