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 @@ -115,13 +115,8 @@ export async function getActiveEnvironmentPath(resource?: Resource) {
115115export 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}
You can’t perform that action at this time.
0 commit comments