doublecmd/uGlobsPaths.pas
2007-11-17 19:22:17 +00:00

30 lines
651 B
ObjectPascal

unit uGlobsPaths;
interface
var
gpExePath:String ='';
gpIniDir:String =''; // local for user
gpCfgDir:String =''; // global for all user
gpLngDir:String =''; // path to language *.po files
gpPixmapPath:String ='';
procedure LoadPaths;
implementation
uses
SysUtils;
procedure LoadPaths;
begin
gpExePath:=ExtractFilePath(ParamStr(0));
Writeln('executable directory:',gpExePath);
// gpExePath:=gpExePath+DirectorySeparator;
gpIniDir:=gpExePath;
gpCfgDir:=gpExePath;
gpLngDir:=gpExePath + 'language' + DirectorySeparator;
gpPixmapPath:= gpExePath + 'pixmaps' + DirectorySeparator;
end;
end.