X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=libs%2Fardour%2Fsearch_paths.cc;h=789c9b6b4878fc76cca954df9b0cc232d94cc7cf;hb=884cb355230d293233e599bdfebae7f67684a48e;hp=1089a3cd8230bbc28c4196c64118e9cb58cee046;hpb=4dc63966f0872efe768dad61eb9b8785d06b92d1;p=ardour.git diff --git a/libs/ardour/search_paths.cc b/libs/ardour/search_paths.cc index 1089a3cd82..789c9b6b48 100644 --- a/libs/ardour/search_paths.cc +++ b/libs/ardour/search_paths.cc @@ -64,7 +64,7 @@ control_protocol_search_path () Searchpath spath(user_config_directory ()); spath += ardour_dll_directory (); spath.add_subdirectory_to_paths (surfaces_dir_name); - + spath += Searchpath(Glib::getenv(surfaces_env_variable_name)); return spath; } @@ -163,6 +163,15 @@ route_template_search_path () return spath; } +Searchpath +lua_search_path () +{ + Searchpath spath (ardour_data_search_path()); + spath.add_subdirectory_to_paths(lua_dir_name); + + return spath; +} + #ifdef PLATFORM_WINDOWS const char*