| 80 | } |
| 81 | |
| 82 | void Settings::addOptions(const nlohmann::json& options) |
| 83 | { |
| 84 | nlohmann::json flattened = settings::detail::flattenDictionary(options); |
| 85 | for (auto& it : flattened.items()) |
| 86 | getActive().mOptions.removePrefix(it.key()); |
| 87 | getActive().mOptions.addDict(flattened); |
| 88 | updateSearchPaths(flattened); |
| 89 | } |
| 90 | |
| 91 | void Settings::addOptions(const pybind11::dict& options) |
| 92 | { |