Skip to content
This repository has been archived by the owner on Sep 23, 2024. It is now read-only.

Commit

Permalink
create datadir folder if not exist
Browse files Browse the repository at this point in the history
  • Loading branch information
SoftFever committed Dec 30, 2023
1 parent 781b187 commit a5f1bf7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/libslic3r/utils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -272,6 +272,9 @@ static std::string g_data_dir;
void set_data_dir(const std::string &dir)
{
g_data_dir = dir;
if (!g_data_dir.empty() && !boost::filesystem::exists(g_data_dir)) {
boost::filesystem::create_directory(g_data_dir);
}
}

const std::string& data_dir()
Expand Down

0 comments on commit a5f1bf7

Please sign in to comment.