delphimvcframework/sources/uGlobalVars.pas

29 lines
512 B
ObjectPascal
Raw Normal View History

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, '');
// 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.