when selecting one of a set of variable I/O configs for an AudioUnit so that its...
[ardour.git] / libs / ardour / export_formats_search_path.cc
index e8b95b69e10d84ca2e6f27cd1a3f5a3405e64469..39ccb0de1391f8b6a31f0eba3fbb23950e6e8039 100644 (file)
@@ -35,13 +35,17 @@ namespace ARDOUR {
 SearchPath
 export_formats_search_path ()
 {
-       bool export_path_defined = false;
-       SearchPath spath (Glib::getenv (export_env_variable_name, export_path_defined));
+       SearchPath spath;
 
-       spath += user_config_directory ();
+       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;
+       bool export_path_defined = false;
+       SearchPath spath_env = Glib::getenv (export_env_variable_name, export_path_defined);    
+
+       if (export_path_defined) {
+               spath += spath_env;
+       }
 
        return spath;
 }