Moved the Slic3rPE/print,filament,printer folders to

Slic3rPE/presets/print,filament,printer
to separate the presets from further data stored into the Slic3rPE
directory.
This commit is contained in:
bubnikv 2017-12-10 22:11:00 +01:00
parent ca4bd96d5d
commit 679aa2822c
8 changed files with 21 additions and 41 deletions

View file

@ -113,19 +113,6 @@ const std::string& data_dir()
return g_data_dir;
}
std::string config_path(const std::string &file_name)
{
auto file = (boost::filesystem::path(g_data_dir) / file_name).make_preferred();
return file.string();
}
std::string config_path(const std::string &section, const std::string &name)
{
auto file_name = boost::algorithm::iends_with(name, ".ini") ? name : name + ".ini";
auto file = (boost::filesystem::path(g_data_dir) / section / file_name).make_preferred();
return file.string();
}
} // namespace Slic3r
#ifdef SLIC3R_HAS_BROKEN_CROAK