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

@ -106,12 +106,13 @@ PresetCollection::arrayref()
croak("Cannot create configuration directories:\n%s\n", e.what());
}
%};
void load_presets(const char *dir_path)
void load_presets()
%code%{
try {
THIS->load_presets(dir_path);
THIS->load_presets();
} catch (std::exception& e) {
croak("Loading of Slic3r presets from %s failed.\n\n%s\n", dir_path, e.what());
croak("Loading of Slic3r presets from %s failed.\n\n%s\n",
Slic3r::data_dir().c_str(), e.what());
}
%};
void load_config_file(const char *path)