Skip to content

Commit 1b36511

Browse files
committed
Try and force the use of absolute path
- Trying to fix #21, still not sure why only gitlabCI has a problem. - Fix comment that should have been updated when the function moved.
1 parent b21fc05 commit 1b36511

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/options.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@ const std::filesystem::path& Options::getAbsolutePath()
1616
// Where are the data files
1717

1818
// Get the location of this source file
19-
// This will always be - /some/path/inch/src/IO.cpp
19+
// This will always be - /some/path/inch/src/options.cpp
2020
// Only the directory separator/specifier will be different
21-
// We want to replace "src/IO.cpp" with "data_files/", using the appropriate separator
21+
// We want to replace "src/options.cpp" with "data_files/", using the appropriate separator
2222
std::regex re("(src)(.)(.*)");
2323
const auto absolute_path = std::regex_replace(__FILE__, re, "data_files$2");
2424

25-
static const std::filesystem::path data{ absolute_path };
25+
static const std::filesystem::path data = std::filesystem::absolute(absolute_path);
2626

2727
return data;
2828
}

0 commit comments

Comments
 (0)