File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
PythonForDelphi/Components/Sources/Core Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -126,7 +126,12 @@ procedure TPythonVersion.AssignTo(PythonEngine: TPersistent);
126
126
if Is_venv then begin
127
127
TPythonEngine(PythonEngine).VenvPythonExe := PythonExecutable;
128
128
TPythonEngine(PythonEngine).SetPythonHome(DLLPath);
129
- end else if not IsRegistered then
129
+ end else if not IsRegistered or Is_conda then
130
+ // Not sure why but PythonHome needs to be set even for
131
+ // registered conda distributions
132
+ // Note also that for conda distributions to work properly,
133
+ // you need to add Format('%s;%0:s\Library\bin;', [Version.InstallPath]
134
+ // to your Windows path if it is not there already.
130
135
TPythonEngine(PythonEngine).SetPythonHome(InstallPath);
131
136
end ;
132
137
end ;
You can’t perform that action at this time.
0 commit comments