add virtual method is_instrument() to PluginInfo (already existed for AUPluginInfo...
[ardour.git] / libs / ardour / export_formats_search_path.cc
index fa93e0a55a3b216985bb32349b7bba6134f1721b..39ccb0de1391f8b6a31f0eba3fbb23950e6e8039 100644 (file)
@@ -17,6 +17,7 @@
 
 */
 
+#include <iostream>
 #include <glibmm/miscutils.h>
 
 #include "ardour/export_formats_search_path.h"
@@ -34,12 +35,18 @@ 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);
 
+       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;
 }