reduce header dependencies (part 1/2)
[ardour.git] / libs / ardour / search_paths.cc
index 1089a3cd8230bbc28c4196c64118e9cb58cee046..789c9b6b4878fc76cca954df9b0cc232d94cc7cf 100644 (file)
@@ -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*