Skip to content

Commit 6b2cc0e

Browse files
committed
Fix #477
1 parent e7b3a0a commit 6b2cc0e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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)