fixed dynamic output dir for drag+drop
--HG-- extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401310
This commit is contained in:
parent
5d195c6560
commit
9f4a682a1f
@ -56,8 +56,12 @@ begin
|
||||
|
||||
cfg := TIniFile.Create(ExtractFilePath(ParamStr(0)) + 'compiler.ini');
|
||||
outdir := cfg.ReadString('Main', 'Output', '');
|
||||
if (outdir <> '') and (DirectoryExists(outdir)) then
|
||||
outdir := IncludeTrailingPathDelimiter(outdir)
|
||||
if (outdir <> '') then begin
|
||||
if (DirectoryExists(outdir)) then
|
||||
outdir := IncludeTrailingPathDelimiter(outdir)
|
||||
else if (DirectoryExists(ExtractFilePath(ParamStr(0)) + outdir)) then
|
||||
outdir := ExtractFilePath(ParamStr(0)) + IncludeTrailingPathDelimiter(outdir);
|
||||
end
|
||||
else
|
||||
outdir := '';
|
||||
cfg.Free;
|
||||
|
Binary file not shown.
Loading…
Reference in New Issue
Block a user