| 28 | namespace |
| 29 | { |
| 30 | std::filesystem::path GetModulePath() |
| 31 | { |
| 32 | char exe[1024]; |
| 33 | |
| 34 | int ret = readlink("/proc/self/exe", exe, sizeof(exe)-1); |
| 35 | if(ret == -1) |
| 36 | { |
| 37 | exit(1); |
| 38 | } |
| 39 | exe[ret] = 0; |
| 40 | return std::filesystem::path{exe}; |
| 41 | } |
| 42 | |
| 43 | std::string GetUrlFromPath(const std::filesystem::path path) |
| 44 | { |
no outgoing calls