File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -3021,9 +3021,8 @@ function CleanString(const s : UnicodeString; AppendLF : Boolean = True) : Unico
30213021implementation 
30223022
30233023uses 
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 
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments