some subsonic cleanup

This commit is contained in:
kay.one 2011-04-05 20:14:43 -07:00
commit 1e73138f6d
8 changed files with 22 additions and 8 deletions

View file

@ -100,7 +100,12 @@ namespace NzbDrone.Core
{
get
{
return HostingEnvironment.ApplicationPhysicalPath;
if (!String.IsNullOrWhiteSpace(HostingEnvironment.ApplicationPhysicalPath))
{
return HostingEnvironment.ApplicationPhysicalPath;
}
return Directory.GetCurrentDirectory();
}
}