Home | All Classes | Grouped Classes | Index | Search
Returns the full dirname of the executable that started this process (aka argv[0])
std::string get_exe_path();
Return value:
full dirname of the executable, trailing slash is included
Detailed description:
This is necessary since when programms are started from the PATH there is no clean and simple way to figure out the location of the data files, thus information is read from /proc/self/exe under GNU/Linux and from GetModuleFileName() on Win32.
See also: