*/
+#include <iostream>
#include <glibmm/miscutils.h>
#include "ardour/export_formats_search_path.h"
SearchPath
export_formats_search_path ()
{
- bool export_path_defined = false;
- SearchPath spath_env (Glib::getenv(export_env_variable_name, export_path_defined));
-
- if (export_path_defined) {
- return spath_env;
- }
+ SearchPath spath (ardour_data_search_path());
+ spath.add_subdirectory_to_paths (export_formats_dir_name);
- SearchPath spath (user_config_directory ());
+ bool export_formats_path_defined = false;
+ SearchPath spath_env (Glib::getenv(export_env_variable_name, export_formats_path_defined));
- spath += ardour_module_directory ();
- spath.add_subdirectory_to_paths (export_formats_dir_name);
+ if (export_formats_path_defined) {
+ spath += spath_env;
+ }
return spath;
}