X-Git-Url: http://git.bytex64.net/?a=blobdiff_plain;f=Config.cs;fp=Config.cs;h=b8f04cdf5bf0c95df90b1c09e66dbb647b948db9;hb=de68be10ae8d84f85431c704bb06d89e4d93cc98;hp=7bf97537d1f835527a87ab481021fbc917cc8353;hpb=2be31e14fb4593a82a52219e534a61a2613ead34;p=WebThing.git diff --git a/Config.cs b/Config.cs index 7bf9753..b8f04cd 100644 --- a/Config.cs +++ b/Config.cs @@ -18,6 +18,7 @@ namespace bytex64.WebThing { public class Config { public static List ConfigPath; public static string ConfigPathOut = null; + public static List PluginPath; public static Dictionary Options; public static Dictionary> PluginOptions; @@ -55,6 +56,11 @@ namespace bytex64.WebThing { if (Directory.Exists(homepath)) ConfigPathOut = homepath; } + + // Set up PluginPath + PluginPath = new List(); + PluginPath.Add(Environment.GetEnvironmentVariable("WEBTHING_HOME") + "/plugins"); + PluginPath.Add(Environment.GetEnvironmentVariable("WEBTHING_HOME") + "/searchplugins"); } private static void ParseOption(string key, string val) {