Fix tutk logs location (#3209) (#3248)

This commit is contained in:
Noisyfox 2023-12-23 15:02:06 +08:00 committed by GitHub
parent 0f2a223abd
commit 01706eff84
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2107,6 +2107,9 @@ void GUI_App::init_app_config()
if (!boost::filesystem::exists(data_dir_path)){ if (!boost::filesystem::exists(data_dir_path)){
boost::filesystem::create_directory(data_dir_path); boost::filesystem::create_directory(data_dir_path);
} }
// Change current dirtory of application
chdir(encode_path((Slic3r::data_dir() + "/log").c_str()).c_str());
} else { } else {
m_datadir_redefined = true; m_datadir_redefined = true;
} }