Skip to content

Commit a650ee7

Browse files
committed
1 parent e57e2fe commit a650ee7

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

Source/PythonEngine.pas

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3021,9 +3021,8 @@ function CleanString(const s : UnicodeString; AppendLF : Boolean = True) : Unico
30213021
implementation
30223022

30233023
uses
3024-
{$IFDEF FPC}
30253024
StrUtils,
3026-
{$ELSE}
3025+
{$IFNDEF FPC}
30273026
AnsiStrings,
30283027
{$ENDIF}
30293028
{$IFDEF MSWINDOWS}
@@ -4660,15 +4659,15 @@ procedure TPythonEngine.Initialize;
46604659

46614660
procedure SetPythonPath(var Config: PyConfig);
46624661
var
4663-
Paths: TArray<string>;
4662+
Paths: TStringDynArray;
46644663
I: Integer;
46654664
PWSL: PPyWideStringList;
46664665
begin
46674666
if FPythonPath = '' then Exit;
46684667

46694668
PWSL := PPyWideStringList(PByte(@Config) + ConfigOffests[MinorVersion,
46704669
TConfigFields.module_search_paths]);
4671-
Paths := string(FPythonPath).Split([PathSep]);
4670+
Paths := SplitString(string(FPythonPath), PathSep);
46724671
for I := 0 to Length(Paths) - 1 do
46734672
begin
46744673
if (Paths[I] = '') and (I > 0) then

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy