+
+/* List of config versions to look for in descending order of preference;
+ * i.e. look at the first one, and if that doesn't exist, try the second, etc.
+ */
+static std::vector<std::string> config_versions = { "2.16" };
+
+
+static
+boost::filesystem::path
+config_path_or_override (optional<string> version)
+{
+ if (State::override_path) {
+ auto p = *State::override_path;
+ if (version) {
+ p /= *version;
+ }
+ return p;
+ }
+
+ return config_path (version);
+}
+
+