Skip to content

Commit

Permalink
I don't understand why this would change, but the path is clearly wro…
Browse files Browse the repository at this point in the history
…ng on my PR
  • Loading branch information
afuller-TT committed Nov 21, 2024
1 parent c8ae6be commit 6bdc44f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions common/utils.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 6bdc44f

Please sign in to comment.