From 9b16e3b5387e3f4747e64c66d71b2e17cc764c03 Mon Sep 17 00:00:00 2001 From: Keivan Beigi Date: Tue, 21 Jul 2015 19:43:06 -0700 Subject: [PATCH] _output folder is considered a non-prodction folder --- .../EnvironmentInfo/RuntimeInfoBase.cs | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/NzbDrone.Common/EnvironmentInfo/RuntimeInfoBase.cs b/src/NzbDrone.Common/EnvironmentInfo/RuntimeInfoBase.cs index 5e92b46f0..c2c394e47 100644 --- a/src/NzbDrone.Common/EnvironmentInfo/RuntimeInfoBase.cs +++ b/src/NzbDrone.Common/EnvironmentInfo/RuntimeInfoBase.cs @@ -108,8 +108,19 @@ namespace NzbDrone.Common.EnvironmentInfo } + try + { + var currentAssmeblyLocation = typeof(RuntimeInfoBase).Assembly.Location; + if(currentAssmeblyLocation.ToLower().Contains("_output"))return false; + } + catch + { + + } + string lowerCurrentDir = Directory.GetCurrentDirectory().ToLower(); if (lowerCurrentDir.Contains("teamcity")) return false; + if (lowerCurrentDir.Contains("_output")) return false; if (lowerCurrentDir.StartsWith("/run/")) return false; return true;