We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e7b3a0a commit 6b2cc0eCopy full SHA for 6b2cc0e
Source/PythonEngine.pas
@@ -4668,7 +4668,7 @@ procedure TPythonEngine.Initialize;
4668
4669
PWSL := PPyWideStringList(PByte(@Config) + ConfigOffests[MinorVersion,
4670
TConfigFields.module_search_paths]);
4671
- Paths := FPythonPath.Split([PathSep]);
+ Paths := string(FPythonPath).Split([PathSep]);
4672
for I := 0 to Length(Paths) - 1 do
4673
begin
4674
if (Paths[I] = '') and (I > 0) then
@@ -9781,7 +9781,7 @@ function StringToWCharTString(Str: string): WcharTString;
9781
{$IFDEF POSIX}
9782
Result := UnicodeStringToUCS4String(UnicodeString(Str));
9783
{$ELSE}
9784
- Result := Str;
+ Result := WcharTString(Str);
9785
{$ENDIF}
9786
end;
9787
0 commit comments