Skip to content

Commit eb3c11f

Browse files
committed
fix: add pipenv executable to NativePythonFinder configuration
1 parent 2e5fd32 commit eb3c11f

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/managers/common/nativePythonFinder.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -568,6 +568,7 @@ class NativePythonFinderImpl implements NativePythonFinder {
568568
workspaceDirectories: this.api.getPythonProjects().map((item) => item.uri.fsPath),
569569
environmentDirectories: extraSearchPaths,
570570
condaExecutable: getPythonSettingAndUntildify<string>('condaPath'),
571+
pipenvExecutable: getPythonSettingAndUntildify<string>('pipenvPath'),
571572
poetryExecutable: getPythonSettingAndUntildify<string>('poetryPath'),
572573
cacheDirectory: this.cacheDirectory?.fsPath,
573574
};
@@ -602,6 +603,9 @@ class NativePythonFinderImpl implements NativePythonFinder {
602603
if (a.condaExecutable !== b.condaExecutable) {
603604
return false;
604605
}
606+
if (a.pipenvExecutable !== b.pipenvExecutable) {
607+
return false;
608+
}
605609
if (a.poetryExecutable !== b.poetryExecutable) {
606610
return false;
607611
}
@@ -634,6 +638,7 @@ type ConfigurationOptions = {
634638
workspaceDirectories: string[];
635639
environmentDirectories: string[];
636640
condaExecutable: string | undefined;
641+
pipenvExecutable: string | undefined;
637642
poetryExecutable: string | undefined;
638643
cacheDirectory?: string;
639644
};

0 commit comments

Comments
 (0)