3 #include <pbd/filesystem.h>
6 #include <ardour/template_utils.h>
7 #include <ardour/directory_names.h>
8 #include <ardour/filesystem_paths.h>
13 system_template_directory ()
15 SearchPath spath(system_data_search_path());
16 spath.add_subdirectory_to_paths(templates_dir_name);
18 // just return the first directory in the search path that exists
19 SearchPath::const_iterator i = std::find_if(spath.begin(), spath.end(), sys::exists);
23 warning << "System template directory does not exist" << endmsg;
31 user_template_directory ()
33 sys::path p(user_config_directory());
34 p /= templates_dir_name;