Changeset 11 for trunk/UInstance.pas
- Timestamp:
- Mar 19, 2011, 12:17:53 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/UInstance.pas
r10 r11 108 108 var 109 109 Process: TProcess; 110 I: Integer; 110 111 begin 111 112 if Assigned(IDESource) then … … 113 114 UpdateFPCConfig; 114 115 UpdateLazarusConfig; 116 115 117 Process := TProcess.Create(nil); 118 119 for I := 0 to GetEnvironmentVariableCount - 1 do 120 Process.Environment.Add(GetEnvironmentString(I)); 121 122 Process.Environment.Values['PATH'] := GetPath + DirectorySeparator + FPCSource.ProjectShortName + 123 '/lib/fpc/' + FPCSource.VersionNumber + ':' + Process.Environment.Values['PATH']; 124 Process.Environment.Values['PPC_CONFIG_PATH'] := GetBinPath; 125 ShowMessage(Process.Environment.Text); 126 116 127 Process.CurrentDirectory := GetPath + DirectorySeparator + IDESource.ProjectShortName; 117 128 Process.CommandLine := GetPath + DirectorySeparator + IDESource.ProjectShortName + … … 167 178 Config.LoadFromFile(MainForm.GetBaseDir + DirectorySeparator + 168 179 MainForm.TemplateDir + DirectorySeparator + 'fpc.cfg'); 180 {$IFDEF Windows} 169 181 Config.Text := StringReplace(Config.Text, '$(FPCDir)', GetPath + 170 182 DirectorySeparator + FPCSource.ProjectShortName, [rfReplaceAll]); 183 {$ENDIF} 184 {$IFDEF Linux} 185 Config.Text := StringReplace(Config.Text, '$(FPCDir)', GetPath + 186 DirectorySeparator + FPCSource.ProjectShortName + 187 '/lib/fpc/' + FPCSource.VersionNumber, [rfReplaceAll]); 188 {$ENDIF} 171 189 Config.SaveToFile(GetBinPath + DirectorySeparator + 'fpc.cfg'); 172 190 finally
Note:
See TracChangeset
for help on using the changeset viewer.