Skip to content

Commit

Permalink
Better detection of Conda environments
Browse files Browse the repository at this point in the history
  • Loading branch information
pyscripter committed Jul 18, 2019
1 parent 7b174c7 commit 4621457
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion PythonForDelphi/Components/Sources/Core/PythonVersions.pas
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 4621457

Please sign in to comment.