Browse Source

Begin simplify of paths

merge-requests/365/head
Jørgen Lien Sellæg 10 years ago
parent
commit
47d3cfb140
  1. 12
      src/singletons.cc

12
src/singletons.cc

@ -55,12 +55,8 @@ boost::filesystem::path Singleton::create_config_path(const std::string &subfold
return home;
}
boost::filesystem::path Singleton::config_dir() { return create_config_path(".juci/config"); }
boost::filesystem::path Singleton::log_dir() { return create_config_path(".juci/log"); }
boost::filesystem::path Singleton::style_dir() { return create_config_path(".juci/styles"); }
std::string Singleton::config_json() {
auto conf_dir = Singleton::config_dir();
conf_dir /= "config.json"; // to ensure correct paths on windows
return conf_dir.string();
}
boost::filesystem::path Singleton::config_dir() { return create_config_path({".juci", "config"}); }
boost::filesystem::path Singleton::log_dir() { return create_config_path({".juci", "log"}); }
boost::filesystem::path Singleton::style_dir() { return create_config_path({".juci", "styles"}); }
std::string Singleton::config_json() { return (Singleton::config_dir()/"config.json").string(); }

Loading…
Cancel
Save