-
Notifications
You must be signed in to change notification settings - Fork 0
/
PES_PackUtils.pas
34 lines (24 loc) · 1.26 KB
/
PES_PackUtils.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
unit PES_PackUtils;
uses SubExecutables in 'Utils\SubExecutables';
uses AOtp in 'Utils\AOtp';
uses PathUtils in 'Utils\PathUtils';
type
MessageException = AOtp.MessageException;
procedure Otp(l: OtpLine) := AOtp.Otp(l);
procedure ErrOtp(e: Exception) := AOtp.ErrOtp(e);
function GetFullPath(fname: string; base_folder: string := System.Environment.CurrentDirectory) := PathUtils.GetFullPath(fname, base_folder);
function GetFullPathRTA(fname: string) := PathUtils.GetFullPathRTA(fname);
function GetRelativePath(fname: string; base_folder: string := System.Environment.CurrentDirectory) := PathUtils.GetRelativePath(fname, base_folder);
function GetRelativePathRTA(fname: string) := PathUtils.GetRelativePathRTA(fname);
function is_separate_execution := Logger.main is ConsoleLogger;
function nfi := AOtp.nfi;
function enc := AOtp.enc;
function assembly_dir := PathUtils.assembly_dir;
begin
try
while not FileExists('PES_PackUtils.pas') do
System.Environment.CurrentDirectory := System.IO.Path.GetDirectoryName(System.Environment.CurrentDirectory);
except
on e: Exception do ErrOtp(e);
end;
end.