restore ability to create TOC and CUE files during export. this is an option in a...
[ardour.git] / libs / ardour / panner_search_path.cc
index 434e9461e23e5d15b3cf4a70175785d84a33ef7c..257f9d0c7889501a64796a68b93f254e40bed808 100644 (file)
@@ -17,7 +17,6 @@
 
 */
 
-#include <iostream>
 #include <glibmm/miscutils.h>
 
 #include "ardour/panner_search_path.h"
@@ -35,20 +34,18 @@ namespace ARDOUR {
 SearchPath
 panner_search_path ()
 {
+       SearchPath spath (user_config_directory ());
+
+       spath += ardour_module_directory ();
+       spath.add_subdirectory_to_paths(panner_dir_name);
+
        bool panner_path_defined = false;
        SearchPath spath_env (Glib::getenv(panner_env_variable_name, panner_path_defined));
 
        if (panner_path_defined) {
-               return spath_env;
+               spath += spath_env;
        }
 
-       SearchPath spath (user_config_directory ());
-
-        std::cerr << "for panner, AMD = " << ardour_module_directory().to_string() << std::endl;
-        
-       spath += ardour_module_directory ();
-       spath.add_subdirectory_to_paths(panner_dir_name);
-
        return spath;
 }