-
Notifications
You must be signed in to change notification settings - Fork 0
/
POCGL_Utils.pas
36 lines (27 loc) · 1.26 KB
/
POCGL_Utils.pas
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
unit POCGL_Utils;
uses 'Utils/SubExecutables';
uses 'Utils/AOtp';
uses 'Utils/PathUtils';
type
OtpLine = AOtp.OtpLine;
MessageException = AOtp.MessageException;
procedure Otp(l: OtpLine) := AOtp.Otp(l);
procedure Otp(l: string; params kinds: array of string) := AOtp.Otp(l, kinds);
procedure ErrOtp(e: Exception) := AOtp.ErrOtp(e);
function GetFullPath(fname: string; base_folder: string := nil) := PathUtils.GetFullPath(fname, base_folder);
function GetFullPathRTA(fname: string) := PathUtils.GetFullPathRTA(fname);
function GetRelativePath(fname: string; base_folder: string := nil) := PathUtils.GetRelativePath(fname, base_folder);
function GetRelativePathRTA(fname: string) := PathUtils.GetRelativePathRTA(fname);
function IsSeparateExecution := AOtp.IsSeparateExecution;
procedure FinishedPause := AOtp.FinishedPause;
function nfi := FileLogger.nfi;
function enc := FileLogger.enc;
begin
try
FileLogger.RegisterGenerallyBadKind('console only');
while not FileExists('POCGL_Utils.pas') do
System.Environment.CurrentDirectory := System.IO.Path.GetDirectoryName(System.Environment.CurrentDirectory);
except
on e: Exception do ErrOtp(e);
end;
end.