ClickHouse/dbms/src/Common/getExecutablePath.h
2019-08-11 23:37:53 +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();