mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-21 05:53:33 -07:00
fixed some broken tests.
This commit is contained in:
parent
acaa05c9c0
commit
324b5e3b80
19 changed files with 95 additions and 135 deletions
|
@ -75,34 +75,7 @@ namespace NzbDrone.Common
|
|||
|
||||
public virtual string ApplicationPath
|
||||
{
|
||||
get
|
||||
{
|
||||
|
||||
if(IsMono)
|
||||
{
|
||||
return AppDomain.CurrentDomain.BaseDirectory;
|
||||
}
|
||||
|
||||
string applicationPath;
|
||||
|
||||
applicationPath = CrawlToRoot(StartUpPath);
|
||||
if (!string.IsNullOrWhiteSpace(applicationPath))
|
||||
return applicationPath;
|
||||
|
||||
applicationPath = CrawlToRoot(Environment.CurrentDirectory);
|
||||
if (!string.IsNullOrWhiteSpace(applicationPath))
|
||||
return applicationPath;
|
||||
|
||||
applicationPath = CrawlToRoot(AppDomain.CurrentDomain.BaseDirectory);
|
||||
if (!string.IsNullOrWhiteSpace(applicationPath))
|
||||
return applicationPath;
|
||||
|
||||
applicationPath = CrawlToRoot(NzbDronePathFromEnvironment);
|
||||
if (!string.IsNullOrWhiteSpace(applicationPath))
|
||||
return applicationPath;
|
||||
|
||||
throw new ApplicationException("Can't finds IISExpress folder.");
|
||||
}
|
||||
get { return Directory.GetCurrentDirectory(); }
|
||||
}
|
||||
|
||||
public string CrawlToRoot(string dir)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue