2014-02-24 10:20:34 +01:00
|
|
|
unit uGlobalVars;
|
|
|
|
|
|
|
|
interface
|
|
|
|
|
|
|
|
uses
|
|
|
|
Classes, SysUtils;
|
|
|
|
|
|
|
|
var
|
|
|
|
gAppName, gAppPath, gAppExe: string;
|
|
|
|
|
|
|
|
implementation
|
|
|
|
|
2014-04-15 17:44:20 +02:00
|
|
|
uses
|
|
|
|
ioutils;
|
|
|
|
|
2014-02-24 10:20:34 +01:00
|
|
|
initialization
|
|
|
|
|
2014-04-15 17:44:20 +02:00
|
|
|
gAppExe := ExtractFileName(GetModuleName(HInstance) { ParamStr(0) } );
|
|
|
|
gAppName := ChangeFileExt(gAppExe, '');
|
2014-07-18 10:59:19 +02:00
|
|
|
// if not IsConsole then
|
|
|
|
// gAppPath := IncludeTrailingPathDelimiter(TPath.GetPublicPath)
|
|
|
|
// else
|
|
|
|
gAppPath := IncludeTrailingPathDelimiter
|
|
|
|
(ExtractFilePath(GetModuleName(HInstance) { ParamStr(0) } ));
|
2014-02-24 10:20:34 +01:00
|
|
|
|
|
|
|
finalization
|
|
|
|
|
|
|
|
end.
|