MCPcopy Create free account
hub / github.com/ClickHouse/ClickHouse / getExecutablePath

Function getExecutablePath

src/Common/getExecutablePath.cpp:5–13  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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}

Callers 3

mainMethod · 0.85
generateSymbolizedMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected