aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Common/Kernel/BaseApplicationPaths.cs
diff options
context:
space:
mode:
authorLukePulverenti Luke Pulverenti luke pulverenti <LukePulverenti Luke Pulverenti luke.pulverenti@gmail.com>2012-09-03 12:40:35 -0400
committerLukePulverenti Luke Pulverenti luke pulverenti <LukePulverenti Luke Pulverenti luke.pulverenti@gmail.com>2012-09-03 12:40:35 -0400
commit31357d3298baa8e0f540dfefc47eb39da8df128d (patch)
tree375a9f037ed5d1b3fa1ced03cfe460a682f2252e /MediaBrowser.Common/Kernel/BaseApplicationPaths.cs
parent9baf40becb21a248267a6a6c23061d7b3d3fe4e2 (diff)
Updated plugins to store their assemblies directly in the plugins folder
Diffstat (limited to 'MediaBrowser.Common/Kernel/BaseApplicationPaths.cs')
-rw-r--r--MediaBrowser.Common/Kernel/BaseApplicationPaths.cs21
1 files changed, 21 insertions, 0 deletions
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;
+ /// <summary>
+ /// Gets the path to the plugin configurations directory
+ /// </summary>
+ public string PluginConfigurationsPath
+ {
+ get
+ {
+ if (_pluginConfigurationsPath == null)
+ {
+ _pluginConfigurationsPath = Path.Combine(PluginsPath, "configurations");
+ if (!Directory.Exists(_pluginConfigurationsPath))
+ {
+ Directory.CreateDirectory(_pluginConfigurationsPath);
+ }
+ }
+
+ return _pluginConfigurationsPath;
+ }
+ }
+
private string _logDirectoryPath;
/// <summary>
/// Gets the path to the log directory