Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 6b2cc0e

Browse filesBrowse files
committed
Fix #477
1 parent e7b3a0a commit 6b2cc0e
Copy full SHA for 6b2cc0e

File tree

1 file changed

+2
-2
lines changed
Filter options

1 file changed

+2
-2
lines changed

‎Source/PythonEngine.pas

Copy file name to clipboardExpand all lines: Source/PythonEngine.pas
+2-2
Original file line numberDiff line numberDiff line change
@@ -4668,7 +4668,7 @@ procedure TPythonEngine.Initialize;
46684668

46694669
PWSL := PPyWideStringList(PByte(@Config) + ConfigOffests[MinorVersion,
46704670
TConfigFields.module_search_paths]);
4671-
Paths := FPythonPath.Split([PathSep]);
4671+
Paths := string(FPythonPath).Split([PathSep]);
46724672
for I := 0 to Length(Paths) - 1 do
46734673
begin
46744674
if (Paths[I] = '') and (I > 0) then
@@ -9781,7 +9781,7 @@ function StringToWCharTString(Str: string): WcharTString;
97819781
{$IFDEF POSIX}
97829782
Result := UnicodeStringToUCS4String(UnicodeString(Str));
97839783
{$ELSE}
9784-
Result := Str;
9784+
Result := WcharTString(Str);
97859785
{$ENDIF}
97869786
end;
97879787

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.