X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=libs%2Fardour%2Fcontrol_protocol_search_path.cc;h=345989277bef662f571b17585dca960fe5d15efb;hb=204baa31d842d4c2f833d319b6fa55e402a1bfb8;hp=a728b3c10fde964cb28783860922982b628ba300;hpb=e43b01535c491cc8190d53b538bc7a7fd125165c;p=ardour.git diff --git a/libs/ardour/control_protocol_search_path.cc b/libs/ardour/control_protocol_search_path.cc index a728b3c10f..345989277b 100644 --- a/libs/ardour/control_protocol_search_path.cc +++ b/libs/ardour/control_protocol_search_path.cc @@ -17,7 +17,6 @@ */ -#include #include #include "ardour/control_protocol_search_path.h" @@ -35,20 +34,18 @@ namespace ARDOUR { SearchPath control_protocol_search_path () { - bool surfaces_path_defined = false; - SearchPath spath_env (Glib::getenv(surfaces_env_variable_name, surfaces_path_defined)); - - if (surfaces_path_defined) { - return spath_env; - } - SearchPath spath (user_config_directory ()); - std::cerr << "for CPS, AMD = " << ardour_module_directory().to_string() << std::endl; - spath += ardour_module_directory (); spath.add_subdirectory_to_paths (surfaces_dir_name); + bool surfaces_path_defined = false; + SearchPath spath_env (Glib::getenv(surfaces_env_variable_name, surfaces_path_defined)); + + if (surfaces_path_defined) { + spath += spath_env; + } + return spath; }