diff options
| author | Luke Pulverenti <luke.pulverenti@gmail.com> | 2016-11-13 16:04:21 -0500 |
|---|---|---|
| committer | Luke Pulverenti <luke.pulverenti@gmail.com> | 2016-11-13 16:04:21 -0500 |
| commit | 0e9cd51f9c64d4cfad5cb5c7b0ddae6af8d18ac6 (patch) | |
| tree | 359ef5fb2504ed72e03a51a2e90a1017309143f0 /src/Emby.Server/ApplicationPathHelper.cs | |
| parent | 3c55747cd63fd8a69f02efbe9ac48ce76d373b81 (diff) | |
update .net core startup
Diffstat (limited to 'src/Emby.Server/ApplicationPathHelper.cs')
| -rw-r--r-- | src/Emby.Server/ApplicationPathHelper.cs | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/src/Emby.Server/ApplicationPathHelper.cs b/src/Emby.Server/ApplicationPathHelper.cs index 4da87b6a0..c611ff372 100644 --- a/src/Emby.Server/ApplicationPathHelper.cs +++ b/src/Emby.Server/ApplicationPathHelper.cs @@ -8,7 +8,7 @@ namespace Emby.Server { public class ApplicationPathHelper { - public static string GetProgramDataPath(string applicationPath) + public static string GetProgramDataPath(string appDirectory) { var useDebugPath = false; @@ -27,14 +27,7 @@ namespace Emby.Server // If it's a relative path, e.g. "..\" if (!Path.IsPathRooted(programDataPath)) { - var path = Path.GetDirectoryName(applicationPath); - - if (string.IsNullOrEmpty(path)) - { - throw new Exception("Unable to determine running assembly location"); - } - - programDataPath = Path.Combine(path, programDataPath); + programDataPath = Path.Combine(appDirectory, programDataPath); programDataPath = Path.GetFullPath(programDataPath); } |
