mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-12-24 01:34:45 +03:00
Added a BaseKernel for the UI and Server to share, and made some other minor re-organizations.
This commit is contained in:
parent
3f55707755
commit
0a48b5e31a
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user