ClickHouse/src/Common/getExecutablePath.h
2020-04-03 18:14:31 +03:00

12 lines
242 B
C++

#pragma once
#include <string>
/** Get path to the running executable if possible.
* It is possible when:
* - procfs exists;
* - there is a /proc/self/exe file;
* Otherwise return empty string.
*/
std::string getExecutablePath();