diff --git a/common/utils.hpp b/common/utils.hpp index b8cba9f5..f8e8cbef 100644 --- a/common/utils.hpp +++ b/common/utils.hpp @@ -18,10 +18,10 @@ std::string get_abs_path(std::string path) { std::filesystem::path current_file_path = std::filesystem::path(__FILE__); std::filesystem::path umd_root; if (current_file_path.is_absolute()) { - umd_root = current_file_path.parent_path().parent_path(); + umd_root = current_file_path.parent_path().parent_path().parent_path(); } else { std::filesystem::path umd_root_relative = - std::filesystem::relative(std::filesystem::path(__FILE__).parent_path().parent_path(), "../"); + std::filesystem::relative(std::filesystem::path(__FILE__).parent_path().parent_path().parent_path(), "../"); umd_root = std::filesystem::canonical(umd_root_relative); } std::filesystem::path abs_path = umd_root / path;