This commit is contained in:
kay.one 2013-02-16 15:29:21 -08:00
commit 2903d5d581
11 changed files with 78 additions and 39 deletions

View file

@ -36,6 +36,11 @@ namespace NzbDrone.Common
}
}
public static bool IsMono
{
get { return Type.GetType("Mono.Runtime") != null; }
}
public static bool IsDebug
{
get
@ -60,6 +65,12 @@ namespace NzbDrone.Common
{
get
{
if(IsMono)
{
return AppDomain.CurrentDomain.BaseDirectory;
}
string applicationPath;
applicationPath = CrawlToRoot(StartUpPath);