mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-24 16:42:05 +00:00
97f2a2213e
* Move some code outside dbms/src folder * Fix paths
14 lines
274 B
C++
14 lines
274 B
C++
#include <Common/getExecutablePath.h>
|
|
#include <filesystem>
|
|
|
|
|
|
std::string getExecutablePath()
|
|
{
|
|
std::error_code ec;
|
|
std::filesystem::path canonical_path = std::filesystem::canonical("/proc/self/exe", ec);
|
|
|
|
if (ec)
|
|
return {};
|
|
return canonical_path;
|
|
}
|