Update pythonPathLookup.ts (#7807)

Fix regex problem
This commit is contained in:
Amir Omidi
2019-10-18 13:26:38 -07:00
committed by GitHub
parent ce318f123f
commit a791aff0a2

View File

@@ -24,7 +24,7 @@ export class PythonPathLookup {
`${userFolder}/*conda*/bin/python3`
];
} else {
let userFolder = process.env['USERPROFILE'].replace('\\', '/').replace('C:', '');
let userFolder = process.env['USERPROFILE'].replace(/\\/g, '/').replace('C:', '');
this.condaLocations = [
'/ProgramData/[Mm]iniconda*/python.exe',
'/ProgramData/[Aa]naconda*/python.exe',