mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-14 18:57:39 -07:00
lots of different things ;)
This commit is contained in:
parent
c42518b34e
commit
4ae268b8e5
71 changed files with 526 additions and 1229 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue