Mercurial > hg > may
changeset 66:6fec6cb7cec8
Add getPluginPath
author | Chris Cannam |
---|---|
date | Mon, 25 Feb 2013 21:49:11 +0000 |
parents | 8f4fee56853a |
children | fbaf76989d5b |
files | vamp.yeti |
diffstat | 1 files changed, 9 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/vamp.yeti Tue Jan 15 07:54:37 2013 +0000 +++ b/vamp.yeti Mon Feb 25 21:49:11 2013 +0000 @@ -42,6 +42,14 @@ for kk do k: s[numberOf k] := featureList fs#get(k) done; s); +getPluginPath () = + (try + map string PluginLoader#getInstance()#getPluginPath(); + catch UnsatisfiedLinkError e: + eprintln "Warning: Unable to obtain plugin path:\n\(e)"; + []; + yrt); + listPlugins () = (try map string PluginLoader#getInstance()#listPlugins(); @@ -198,6 +206,7 @@ processFile key output filename = process key output (af.open filename); { +get pluginPath = getPluginPath, get pluginKeys = listPlugins, loadPlugin, categoryOf,