aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Server.Mono/Program.cs
diff options
context:
space:
mode:
authorLuke Pulverenti <luke.pulverenti@gmail.com>2013-12-04 09:52:38 -0500
committerLuke Pulverenti <luke.pulverenti@gmail.com>2013-12-04 09:52:38 -0500
commit4e79eaf65e8edb895f9337a8b878ff9ef312b3f6 (patch)
treeae9f74aad256236ada5203fae1f1640867d13360 /MediaBrowser.Server.Mono/Program.cs
parent40959a816f49d040e16e0178d0e11d51282d98cc (diff)
add ApplicationPath to app paths interface to hide implementation
Diffstat (limited to 'MediaBrowser.Server.Mono/Program.cs')
-rw-r--r--MediaBrowser.Server.Mono/Program.cs8
1 files changed, 5 insertions, 3 deletions
diff --git a/MediaBrowser.Server.Mono/Program.cs b/MediaBrowser.Server.Mono/Program.cs
index 057a2456f..d423017fc 100644
--- a/MediaBrowser.Server.Mono/Program.cs
+++ b/MediaBrowser.Server.Mono/Program.cs
@@ -36,7 +36,9 @@ namespace MediaBrowser.Server.Mono
{
Application.Init ();
- var appPaths = CreateApplicationPaths();
+ var applicationPath = Assembly.GetEntryAssembly ().Location;
+
+ var appPaths = CreateApplicationPaths(applicationPath);
var logManager = new NlogManager(appPaths.LogDirectoryPath, "server");
logManager.ReloadLogger(LogSeverity.Info);
@@ -65,9 +67,9 @@ namespace MediaBrowser.Server.Mono
}
}
- private static ServerApplicationPaths CreateApplicationPaths()
+ private static ServerApplicationPaths CreateApplicationPaths(string applicationPath)
{
- return new ServerApplicationPaths();
+ return new ServerApplicationPaths(applicationPath);
}
/// <summary>