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/Program.cs | 21 +-------------------- 1 file changed, 1 insertion(+), 20 deletions(-) (limited to 'MediaBrowser.Program/Program.cs') 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(); -- cgit v1.2.3