File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed
src/client/pythonEnvironments/common/environmentManagers Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -104,19 +104,26 @@ export async function isStorePythonInstalled(interpreterPath?: string): Promise<
104104 */
105105
106106export async function isMicrosoftStoreEnvironment ( interpreterPath : string ) : Promise < boolean > {
107+ console . log ( 'EJFB 6.1' ) ;
107108 if ( await isStorePythonInstalled ( interpreterPath ) ) {
109+ console . log ( 'EJFB 6.2' ) ;
108110 const pythonPathToCompare = path . normalize ( interpreterPath ) . toUpperCase ( ) ;
109111 const localAppDataStorePath = path . normalize ( getMicrosoftStoreAppsRoot ( ) ) . toUpperCase ( ) ;
112+ console . log ( 'EJFB 6.3' ) ;
110113 if ( pythonPathToCompare . includes ( localAppDataStorePath ) ) {
114+ console . log ( 'EJFB 6.4' ) ;
111115 return true ;
112116 }
117+ console . log ( 'EJFB 6.5' ) ;
113118
114119 // Program Files store path is a forbidden path. Only admins and system has access this path.
115120 // We should never have to look at this path or even execute python from this path.
116121 if ( isForbiddenStorePath ( pythonPathToCompare ) ) {
122+ console . log ( 'EJFB 6.6' ) ;
117123 traceWarn ( 'isMicrosoftStoreEnvironment called with Program Files store path.' ) ;
118124 return true ;
119125 }
120126 }
127+ console . log ( 'EJFB 6.7' ) ;
121128 return false ;
122129}
You can’t perform that action at this time.
0 commit comments