We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a8915f5 commit 1a5c76fCopy full SHA for 1a5c76f
src/client/pythonEnvironments/discovery/locators/services/pipEnvHelper.ts
@@ -108,7 +108,7 @@ async function getPipfileIfGlobal(interpreterPath: string): Promise<string | und
108
// |__ Pipfile <--- check if Pipfile exists here and return it
109
// The name of the project (directory where Pipfile resides) is used as a prefix in the environment folder
110
const envFolderName = path.basename(envFolder);
111
- if (envFolderName.match(new RegExp(`^${path.basename(projectDir)}-[0-9a-fA-F]+$`)) === null) {
+ if (!envFolderName.startsWith(`${path.basename(projectDir)}-`)) {
112
return undefined;
113
}
114
0 commit comments