diff options
| author | Luke Pulverenti <luke.pulverenti@gmail.com> | 2014-11-26 15:57:16 -0500 |
|---|---|---|
| committer | Luke Pulverenti <luke.pulverenti@gmail.com> | 2014-11-26 15:57:16 -0500 |
| commit | 63a0d52fd115f3a4888acd53f9fd92defa9dc721 (patch) | |
| tree | cc934bda5db40dc773893f9d1f1a4e2304911af8 /MediaBrowser.ServerApplication | |
| parent | 17081767da92369a29d5f324abebbcfabf4e8ab5 (diff) | |
allow separate configuration of app resources path
Diffstat (limited to 'MediaBrowser.ServerApplication')
| -rw-r--r-- | MediaBrowser.ServerApplication/MainStartup.cs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/MediaBrowser.ServerApplication/MainStartup.cs b/MediaBrowser.ServerApplication/MainStartup.cs index 36430e642..af0219bda 100644 --- a/MediaBrowser.ServerApplication/MainStartup.cs +++ b/MediaBrowser.ServerApplication/MainStartup.cs @@ -153,16 +153,18 @@ namespace MediaBrowser.ServerApplication /// <returns>ServerApplicationPaths.</returns> private static ServerApplicationPaths CreateApplicationPaths(string applicationPath, bool runAsService) { + var resourcesPath = Path.GetDirectoryName(applicationPath); + if (runAsService) { var systemPath = Path.GetDirectoryName(applicationPath); var programDataPath = Path.GetDirectoryName(systemPath); - return new ServerApplicationPaths(programDataPath, applicationPath); + return new ServerApplicationPaths(programDataPath, applicationPath, resourcesPath); } - return new ServerApplicationPaths(ApplicationPathHelper.GetProgramDataPath(applicationPath), applicationPath); + return new ServerApplicationPaths(ApplicationPathHelper.GetProgramDataPath(applicationPath), applicationPath, resourcesPath); } /// <summary> |
