if no save location is specified for an analysis and we happen to have
an analysis location that we were loaded from, default to saving to the
same location.
int dir_create_status;
if (save_path.empty()) {
- if (not analysis_name.empty()) {
+ if (not analysis_path.empty()) {
+ save_path = analysis_path;
+ } else if (not analysis_name.empty()) {
std::string save_name = analysis_name;
// gotta do bit with adding win & thres if to be appended
if (win_append) {