From 46214576f0997140e8bb1106e650656368075e22 Mon Sep 17 00:00:00 2001 From: pyscripter Date: Thu, 18 Jul 2019 03:26:08 +0300 Subject: [PATCH] Better detection of Conda environments --- PythonForDelphi/Components/Sources/Core/PythonVersions.pas | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PythonForDelphi/Components/Sources/Core/PythonVersions.pas b/PythonForDelphi/Components/Sources/Core/PythonVersions.pas index f917991f..b3cd57d9 100644 --- a/PythonForDelphi/Components/Sources/Core/PythonVersions.pas +++ b/PythonForDelphi/Components/Sources/Core/PythonVersions.pas @@ -198,7 +198,7 @@ function TPythonVersion.GetSysArchitecture: string; function TPythonVersion.Is_conda: Boolean; begin - Result := FileExists(IncludeTrailingPathDelimiter(InstallPath) + 'scripts\conda.exe'); + Result := DirectoryExists(IncludeTrailingPathDelimiter(InstallPath) + 'conda-meta'); end; function TPythonVersion.Is_venv: Boolean;