fix "import at file position" when copying or channel-splitting files on import.
[ardour.git] / libs / ardour / export_formats_search_path.cc
index e8b95b69e10d84ca2e6f27cd1a3f5a3405e64469..ed87a56e1af24e10c112a56eb8507f9bbd625233 100644 (file)
@@ -35,14 +35,9 @@ namespace ARDOUR {
 SearchPath
 export_formats_search_path ()
 {
-       bool export_path_defined = false;
-       SearchPath spath (Glib::getenv (export_env_variable_name, export_path_defined));
-
-       spath += user_config_directory ();
-       spath.add_subdirectory_to_paths (export_formats_dir_name);
-
-       std::cerr << "Looking for export formats in " << spath.to_string() << std::endl;
-
+       SearchPath spath;
+       spath += Glib::build_filename (user_config_directory (), export_formats_dir_name);
+       spath += SearchPath(Glib::getenv (export_env_variable_name));
        return spath;
 }