moved rootdir to eloquera

This commit is contained in:
kay.one 2013-02-03 20:18:59 -08:00
commit 9e4bb278ef
35 changed files with 398 additions and 565 deletions

View file

@ -107,7 +107,15 @@ namespace NzbDrone.Common
{
get
{
return new FileInfo(Assembly.GetExecutingAssembly().Location).Directory.FullName;
var path = new FileInfo(Assembly.GetExecutingAssembly().Location).Directory.FullName;
if (path.StartsWith(Environment.GetFolderPath(Environment.SpecialFolder.Windows),
StringComparison.InvariantCultureIgnoreCase))
{
path = Directory.GetCurrentDirectory();
}
return path;
}
}