public static string GetFileSetting(string key)
{
string filePath = GetSetting(key);
if (filePath != null && !Path.IsPathRooted(filePath))
{
//relative path, so prepend with location of the config file
filePath = Path.Combine(Path.GetDirectoryName(config.FilePath), filePath);
}
return filePath;
}
}