From 0a48b5e31aa712acd988626a88c52c47467945b2 Mon Sep 17 00:00:00 2001 From: LukePulverenti Luke Pulverenti luke pulverenti Date: Sat, 21 Jul 2012 14:39:47 -0400 Subject: Added a BaseKernel for the UI and Server to share, and made some other minor re-organizations. --- MediaBrowser.Program/App.config | 2 +- MediaBrowser.Program/Program.cs | 21 +-------------------- 2 files changed, 2 insertions(+), 21 deletions(-) (limited to 'MediaBrowser.Program') diff --git a/MediaBrowser.Program/App.config b/MediaBrowser.Program/App.config index 04df0f820e..5aff9b3508 100644 --- a/MediaBrowser.Program/App.config +++ b/MediaBrowser.Program/App.config @@ -1,7 +1,7 @@  - + diff --git a/MediaBrowser.Program/Program.cs b/MediaBrowser.Program/Program.cs index 1933ad1260..ff7ad002f3 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(); -- cgit v1.2.3