diff options
| author | LukePulverenti Luke Pulverenti luke pulverenti <LukePulverenti Luke Pulverenti luke.pulverenti@gmail.com> | 2012-07-21 14:39:47 -0400 |
|---|---|---|
| committer | LukePulverenti Luke Pulverenti luke pulverenti <LukePulverenti Luke Pulverenti luke.pulverenti@gmail.com> | 2012-07-21 14:39:47 -0400 |
| commit | 0a48b5e31aa712acd988626a88c52c47467945b2 (patch) | |
| tree | d2f9cc9bc6aacca3c1cd847bcdfaa209566b7231 /MediaBrowser.Program | |
| parent | 3f557077550b79e2c209a4041a9318886b79ed14 (diff) | |
Added a BaseKernel for the UI and Server to share, and made some other minor re-organizations.
Diffstat (limited to 'MediaBrowser.Program')
| -rw-r--r-- | MediaBrowser.Program/App.config | 2 | ||||
| -rw-r--r-- | MediaBrowser.Program/Program.cs | 21 |
2 files changed, 2 insertions, 21 deletions
diff --git a/MediaBrowser.Program/App.config b/MediaBrowser.Program/App.config index 04df0f820..5aff9b350 100644 --- a/MediaBrowser.Program/App.config +++ b/MediaBrowser.Program/App.config @@ -1,7 +1,7 @@ <?xml version="1.0" encoding="utf-8" ?>
<configuration>
<appSettings>
- <add key="DataPath" value="..\..\..\ProgramData" />
+ <add key="ProgramDataPath" value="..\..\..\ProgramData" />
</appSettings>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5" />
diff --git a/MediaBrowser.Program/Program.cs b/MediaBrowser.Program/Program.cs index 1933ad126..ff7ad002f 100644 --- a/MediaBrowser.Program/Program.cs +++ b/MediaBrowser.Program/Program.cs @@ -1,6 +1,4 @@ using System;
-using System.Configuration;
-using System.IO;
using MediaBrowser.Controller;
namespace MediaBrowser.Program
@@ -18,24 +16,7 @@ namespace MediaBrowser.Program Console.WriteLine("Loading");
- string installDir = ConfigurationManager.AppSettings["DataPath"];
-
- if (!Path.IsPathRooted(installDir))
- {
- string path = System.Reflection.Assembly.GetExecutingAssembly().Location;
- path = Path.GetDirectoryName(path);
-
- installDir = Path.Combine(path, installDir);
-
- installDir = Path.GetFullPath(installDir);
- }
-
- if (!Directory.Exists(installDir))
- {
- Directory.CreateDirectory(installDir);
- }
-
- Kernel kernel = new Kernel(installDir);
+ Kernel kernel = new Kernel();
kernel.Init();
|
