File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -170,13 +170,13 @@ function TPythonVersion.GetHelpFile: string;
170
170
SR: TSearchRec;
171
171
begin
172
172
Result := FHelpFile;
173
- // for unregistered Python
174
- if (Result = ' ' ) and (InstallPath <> ' ' ) then
173
+ // for unregistered Python or python 11
174
+ if (( Result = ' ' ) or (ExtractFileExt(Result) = ' .html ' ) ) and (InstallPath <> ' ' ) then
175
175
begin
176
- PythonHelpFilePath := InstallPath + ' \ Doc\python*.chm' ;
176
+ PythonHelpFilePath := IncludeTrailingPathDelimiter( InstallPath) + ' Doc\python*.chm' ;
177
177
Res := FindFirst(PythonHelpFilePath, faAnyFile, SR);
178
178
if Res = 0 then
179
- Result := InstallPath + ' \ Doc\' + SR.Name ;
179
+ Result := IncludeTrailingPathDelimiter( InstallPath) + ' Doc\' + SR.Name ;
180
180
FindClose(SR);
181
181
end ;
182
182
end ;
You can’t perform that action at this time.
0 commit comments