* Get absolute path to directory of currently running binary. * * @return absolute path */
| 61 | * @return absolute path |
| 62 | */ |
| 63 | fs::path getThisBinaryDirectoryPath() |
| 64 | { |
| 65 | std::size_t dirPathSize = 0; |
| 66 | std::string path = getStringThisBinaryPath(dirPathSize); |
| 67 | |
| 68 | // Remove file from path. |
| 69 | if (!path.empty()) { |
| 70 | path.erase(dirPathSize + 1); |
| 71 | } |
| 72 | |
| 73 | return path; |
| 74 | } |
| 75 | |
| 76 | } // namespace utils |
| 77 | } // namespace retdec |