and the user home directory (where Ardour writes new
presets) to look for export presets (should fix #4282).
git-svn-id: svn://localhost/ardour2/branches/3.0@10623
d708f5d6-7413-0410-9779-
e7cbd77b26cf
/**
* return a SearchPath containing directories in which to look for
* export_formats.
- *
- * If ARDOUR_EXPORT_FORMATS_PATH is defined then the SearchPath returned
- * will contain only those directories specified in it, otherwise it will
- * contain the user and system directories which may contain export
- * formats.
*/
PBD::SearchPath export_formats_search_path ();
export_formats_search_path ()
{
bool export_path_defined = false;
- SearchPath spath_env (Glib::getenv(export_env_variable_name, export_path_defined));
+ SearchPath spath (Glib::getenv (export_env_variable_name, export_path_defined));
- if (export_path_defined) {
- return spath_env;
- }
-
- SearchPath spath (user_config_directory ());
-
- spath += ardour_module_directory ();
+ spath += user_config_directory ();
spath.add_subdirectory_to_paths (export_formats_dir_name);
return spath;