mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-11 11:39:19 +02:00
LazLogger: Support setting *_debuglog environment variable. Issue #26537, patch from Reinier Olislagers
git-svn-id: trunk@46161 -
This commit is contained in:
parent
da28de64ac
commit
bc278b1845
@ -641,7 +641,11 @@ begin
|
||||
if FEnvironmentForLogFileName <> '' then begin;
|
||||
// if not found yet, then try to find in the environment variables
|
||||
if (length(result)=0) then begin
|
||||
EnvVarName:= ChangeFileExt(ExtractFileName(ParamStrUTF8(0)),'') + FEnvironmentForLogFileName;
|
||||
// Substitute * with executable filename without extension
|
||||
EnvVarName:=StringReplace(FEnvironmentForLogFileName,
|
||||
'*',
|
||||
ChangeFileExt(ExtractFileName(ParamStrUTF8(0)),''),
|
||||
[rfReplaceAll,rfIgnoreCase]);
|
||||
Result := GetEnvironmentVariableUTF8(EnvVarName);
|
||||
end;
|
||||
end;
|
||||
|
Loading…
Reference in New Issue
Block a user