refactor: Replace os::bts_data_path w/ SystemConfig::data_path
This commit is contained in:
1 parent
b7fae8a6f5
commit
17402ce94a
16 files changed
+75
-74
No files matched your search
@@ -20,9 +20,10 @@ bool create_if_not_there(std::string const &path) {
|
||||
}
|
||||
|
||||
std::string normalize_data_path(std::string const &input_path) {
|
||||
std::string result(input_path);
|
||||
boost::algorithm::replace_first(result, "$data_path", os::bts_data_path());
|
||||
return result;
|
||||
// TODO: Remove this method (just need to be 100% sure this substitution
|
||||
// isn't used in practice)
|
||||
bts_assert(input_path.find("$data_path") == std::string::npos);
|
||||
return input_path;
|
||||
}
|
||||
|
||||
} // namespace utils
|
||||
|
||||
Reference in new issue
Block a user