summaryrefslogtreecommitdiff
path: root/libs/ardour/search_paths.cc
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2016-01-21 14:16:43 +0100
committerRobin Gareus <robin@gareus.org>2016-02-22 22:06:47 +0100
commit4303fbfc0532cc6253d7b36c2dd1162f79d15e98 (patch)
tree683fe94e8920e0c25a3777a93ec7bef7d7d79bb9 /libs/ardour/search_paths.cc
parentf2afb95c5d43240b4cc2ecba0ec70b5e3aee931f (diff)
add lua search path
Diffstat (limited to 'libs/ardour/search_paths.cc')
-rw-r--r--libs/ardour/search_paths.cc9
1 files changed, 9 insertions, 0 deletions
diff --git a/libs/ardour/search_paths.cc b/libs/ardour/search_paths.cc
index 50ecac613e..789c9b6b48 100644
--- a/libs/ardour/search_paths.cc
+++ b/libs/ardour/search_paths.cc
@@ -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*