1#include <Common/getExecutablePath.h>
2#include <filesystem>
3
4
5std::string getExecutablePath()
6{
7 std::error_code ec;
8 std::filesystem::path canonical_path = std::filesystem::canonical("/proc/self/exe", ec);
9
10 if (ec)
11 return {};
12 return canonical_path;
13}
14