From 31357d3298baa8e0f540dfefc47eb39da8df128d Mon Sep 17 00:00:00 2001 From: LukePulverenti Luke Pulverenti luke pulverenti Date: Mon, 3 Sep 2012 12:40:35 -0400 Subject: Updated plugins to store their assemblies directly in the plugins folder --- MediaBrowser.Common/Kernel/BaseApplicationPaths.cs | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) (limited to 'MediaBrowser.Common/Kernel/BaseApplicationPaths.cs') diff --git a/MediaBrowser.Common/Kernel/BaseApplicationPaths.cs b/MediaBrowser.Common/Kernel/BaseApplicationPaths.cs index 3c394680f..798115ffa 100644 --- a/MediaBrowser.Common/Kernel/BaseApplicationPaths.cs +++ b/MediaBrowser.Common/Kernel/BaseApplicationPaths.cs @@ -47,6 +47,27 @@ namespace MediaBrowser.Common.Kernel } } + private string _pluginConfigurationsPath; + /// + /// Gets the path to the plugin configurations directory + /// + public string PluginConfigurationsPath + { + get + { + if (_pluginConfigurationsPath == null) + { + _pluginConfigurationsPath = Path.Combine(PluginsPath, "configurations"); + if (!Directory.Exists(_pluginConfigurationsPath)) + { + Directory.CreateDirectory(_pluginConfigurationsPath); + } + } + + return _pluginConfigurationsPath; + } + } + private string _logDirectoryPath; /// /// Gets the path to the log directory -- cgit v1.2.3