IDE: fixed loading env opts for console help

git-svn-id: trunk@36299 -
This commit is contained in:
mattias 2012-03-24 22:01:01 +00:00
parent 4581d30178
commit 99e00c2ff9
2 changed files with 2 additions and 2 deletions

View File

@ -1215,7 +1215,7 @@ begin
HelpLang := GetLanguageSpecified; HelpLang := GetLanguageSpecified;
if HelpLang = '' then if HelpLang = '' then
begin begin
ConfFileName:=SetDirSeparators(GetPrimaryConfigPath+'/'+EnvOptsConfFileName); ConfFileName:=TrimFilename(SetDirSeparators(GetPrimaryConfigPath+'/'+EnvOptsConfFileName));
try try
Cfg:=TXMLConfig.Create(ConfFileName); Cfg:=TXMLConfig.Create(ConfFileName);
try try

View File

@ -4549,7 +4549,7 @@ begin
debugln([' The Lazarus directory is not set. Pass parameter --lazarusdir.']); debugln([' The Lazarus directory is not set. Pass parameter --lazarusdir.']);
end else if not DirPathExistsCached(PkgLinks.GetGlobalLinkDirectory) end else if not DirPathExistsCached(PkgLinks.GetGlobalLinkDirectory)
then begin then begin
debugln([' The lpl directory is missing. Check that the Lazarus directory is correct.']); debugln([' The lpl directory is missing. Check that the Lazarus (--lazarusdir) directory is correct.']);
end; end;
end; end;
if APackage.AutoCreated then if APackage.AutoCreated then