Skip to content

Commit 4621457

Browse files
committed
Better detection of Conda environments
1 parent 7b174c7 commit 4621457

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

PythonForDelphi/Components/Sources/Core/PythonVersions.pas

+1-1
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ function TPythonVersion.GetSysArchitecture: string;
198198

199199
function TPythonVersion.Is_conda: Boolean;
200200
begin
201-
Result := FileExists(IncludeTrailingPathDelimiter(InstallPath) + 'scripts\conda.exe');
201+
Result := DirectoryExists(IncludeTrailingPathDelimiter(InstallPath) + 'conda-meta');
202202
end;
203203

204204
function TPythonVersion.Is_venv: Boolean;

0 commit comments

Comments
 (0)