|
6 | 6 | #include <boost/foreach.hpp> |
7 | 7 | #include <boost/algorithm/string/predicate.hpp> |
8 | 8 | #include <boost/algorithm/string/find.hpp> |
9 | | -#include <boost/filesystem.hpp> |
| 9 | +#include <filesystem> |
10 | 10 | #include <boost/regex.hpp> |
11 | 11 | #include <boost/algorithm/string/regex.hpp> |
12 | 12 | #include <cmath> |
@@ -1176,7 +1176,7 @@ void MedModel::fill_list_from_file(const string& fname, vector<string>& list) { |
1176 | 1176 |
|
1177 | 1177 | } |
1178 | 1178 | string MedModel::make_absolute_path(const string& main_file, const string& small_file, bool use_cwd) { |
1179 | | - boost::filesystem::path p(main_file); |
| 1179 | + std::filesystem::path p(main_file); |
1180 | 1180 | string main_file_path = p.parent_path().string(); |
1181 | 1181 | if (use_cwd) |
1182 | 1182 | main_file_path = run_current_path; |
@@ -1309,9 +1309,9 @@ string MedModel::json_file_to_string(int recursion_level, const string& main_fil |
1309 | 1309 | } |
1310 | 1310 | out_string += orig.substr(last_char, it->position() - last_char); |
1311 | 1311 | if (add_change_path) { |
1312 | | - boost::filesystem::path json_p(small_file_inc); |
1313 | | - boost::filesystem::path json_par(fname); |
1314 | | - string pth = boost::filesystem::absolute(json_p.parent_path(), json_par.parent_path()).string(); |
| 1312 | + std::filesystem::path json_p(small_file_inc); |
| 1313 | + std::filesystem::path json_par(fname); |
| 1314 | + string pth = std::filesystem::absolute(json_par.parent_path() / json_p.parent_path()).string(); |
1315 | 1315 | snprintf(buff, sizeof(buff), "{\"action_type\":\"change_path:%s\"},\n", pth.c_str()); |
1316 | 1316 | add_path = string(buff); |
1317 | 1317 | out_string += add_path; |
|
0 commit comments