#include <config.h>
+#include "LyXRC.h"
+
#include "support/filetools.h"
#include "support/debug.h"
}
+FileName const imageLibFileSearch(string & dir, string const & name,
+ string const & ext)
+{
+ if (!lyx::lyxrc.icon_set.empty()) {
+ string const imagedir = addPath(dir, lyx::lyxrc.icon_set);
+ FileName const fn = libFileSearch(imagedir, name, ext);
+ if (fn.exists()) {
+ dir = imagedir;
+ return fn;
+ }
+ }
+ return libFileSearch(dir, name, ext);
+}
+
+
string const libScriptSearch(string const & command_in, quote_style style)
{
static string const token_scriptpath = "$$s/";