ClickHouse/src/Common/getExecutablePath.h

12 lines
242 B
C++
Raw Normal View History

2019-08-11 20:37:53 +00:00
#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();