[fpc-pascal] Search path order for fpc.cfg
fredvs
fiens at hotmail.com
Fri Apr 10 23:58:56 CEST 2020
Hello.
The last line of function check_configfile(fn:string; var
foundfn:string):boolean;
should be something like this:
...
else
if CfgFileExists(IncludeTrailingBackslash(ExtractFilePath(ParamStr(0)))+fn)
then
foundfn:=IncludeTrailingBackslash(ExtractFilePath(ParamStr(0)))+fn
else
check_configfile:=false;
--
Sent from: http://free-pascal-general.1045716.n5.nabble.com/
More information about the fpc-pascal
mailing list