Skip to content

Commit b06006b

Browse files
committed
ms store
1 parent 752d581 commit b06006b

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/client/pythonEnvironments/common/environmentManagers/microsoftStoreEnv.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,19 +104,26 @@ export async function isStorePythonInstalled(interpreterPath?: string): Promise<
104104
*/
105105

106106
export 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
}

0 commit comments

Comments
 (0)