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