@@ -331,7 +331,7 @@ export async function getNamedCondaPythonInfo(
331331
332332 return {
333333 name : name ,
334- environmentPath : Uri . file ( prefix ) ,
334+ environmentPath : Uri . file ( executable ) ,
335335 displayName : `${ name } (${ sv } )` ,
336336 shortDisplayName : `${ name } :${ sv } ` ,
337337 displayPath : prefix ,
@@ -376,7 +376,7 @@ export async function getPrefixesCondaPythonInfo(
376376 const basename = path . basename ( prefix ) ;
377377 return {
378378 name : basename ,
379- environmentPath : Uri . file ( prefix ) ,
379+ environmentPath : Uri . file ( executable ) ,
380380 displayName : `${ basename } (${ sv } )` ,
381381 shortDisplayName : `${ basename } :${ sv } ` ,
382382 displayPath : prefix ,
@@ -749,7 +749,9 @@ export function nonWindowsGenerateConfig(
749749function getCondaWithoutPython ( name : string , prefix : string , conda : string ) : PythonEnvironmentInfo {
750750 return {
751751 name : name ,
752- environmentPath : Uri . file ( prefix ) ,
752+ environmentPath : Uri . file (
753+ isWindows ( ) ? path . join ( prefix , 'python.exe' ) : path . join ( prefix , 'bin' , 'python' ) ,
754+ ) ,
753755 displayName : `${ name } (no-python)` ,
754756 shortDisplayName : `${ name } (no-python)` ,
755757 displayPath : prefix ,
@@ -1224,11 +1226,11 @@ export async function quickCreateConda(
12241226}
12251227
12261228export async function deleteCondaEnvironment ( environment : PythonEnvironment , log : LogOutputChannel ) : Promise < boolean > {
1227- let args = [ 'env' , 'remove' , '--yes' , '--prefix' , environment . environmentPath . fsPath ] ;
1229+ let args = [ 'env' , 'remove' , '--yes' , '--prefix' , environment . sysPrefix ] ;
12281230 return await withProgress (
12291231 {
12301232 location : ProgressLocation . Notification ,
1231- title : l10n . t ( 'Deleting conda environment: {0}' , environment . environmentPath . fsPath ) ,
1233+ title : l10n . t ( 'Deleting conda environment: {0}' , environment . sysPrefix ) ,
12321234 } ,
12331235 async ( ) => {
12341236 try {
0 commit comments