mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-11-10 01:09:50 +00:00
Changed: Make absolute program path (useful if launched from current directory under Linux)
Changed: Set process name for logs --HG-- branch : develop
This commit is contained in:
parent
222544f902
commit
7237736922
1 changed files with 4 additions and 1 deletions
|
@ -262,7 +262,10 @@ bool CCmdArgs::parse(const std::vector<std::string> &argv)
|
|||
|
||||
// first argument is always the program name
|
||||
_ProgramName = CFile::getFilename(argv.front());
|
||||
_ProgramPath = CPath::standardizePath(CFile::getPath(argv.front()));
|
||||
_ProgramPath = CPath::makePathAbsolute(CPath::standardizePath(CFile::getPath(argv.front())), CPath::getCurrentPath(), true);
|
||||
|
||||
// set process name for logs
|
||||
CLog::setProcessName(_ProgramName);
|
||||
|
||||
// arguments count
|
||||
uint argc = argv.size();
|
||||
|
|
Loading…
Reference in a new issue