RSTools 3.1.0
Versatile C++20 utility library
Loading...
Searching...
No Matches
Paths.hpp
Go to the documentation of this file.
1#pragma once
2
3#include <filesystem>
4
5namespace RST::System {
6
10
12 [[nodiscard]] std::filesystem::path getExecutablePath();
13
15 [[nodiscard]] std::filesystem::path getExecutableDirectory();
16
18 [[nodiscard]] std::filesystem::path getHomeDirectory();
20}
Portable access to system information, environment variables, files and paths.
Definition Environment.hpp:7
std::filesystem::path getExecutablePath()
Absolute path of the running executable.
std::filesystem::path getHomeDirectory()
Home directory of the current user.
std::filesystem::path getExecutableDirectory()
Directory of the running executable.