lots of different things ;)

This commit is contained in:
kay.one 2011-10-23 22:54:09 -07:00
commit 4ae268b8e5
71 changed files with 526 additions and 1229 deletions

View file

@ -1,4 +1,5 @@
using System;
using System.Diagnostics;
using System.IO;
using System.Reflection;
@ -16,6 +17,23 @@ namespace NzbDrone.Common
get { return Environment.UserInteractive; }
}
public static bool IsProduction
{
get
{
if (Debugger.IsAttached) return false;
var processName = Process.GetCurrentProcess().ProcessName.ToLower();
Console.WriteLine(processName);
if (processName.Contains("nunit")) return false;
if (processName.Contains("jetbrain")) return false;
if (processName.Contains("resharper")) return false;
return true;
}
}
public virtual string ApplicationPath
{
get