The configger tool hadn't been updated since the introduction of OpenSimDefaults! :0

It is updated now.
0.8.2-post-fixes
Diva Canto 2015-12-24 10:05:59 -08:00
parent 997cafb556
commit 363d7054ea
2 changed files with 36 additions and 0 deletions

View File

@ -70,6 +70,36 @@ namespace OpenSim.Tools.Configger
List<string> sources = new List<string>();
string masterFileName = startupConfig.GetString("inimaster", "OpenSimDefaults.ini");
if (masterFileName == "none")
masterFileName = String.Empty;
if (IsUri(masterFileName))
{
if (!sources.Contains(masterFileName))
sources.Add(masterFileName);
}
else
{
string masterFilePath = Path.GetFullPath(
Path.Combine(Util.configDir(), masterFileName));
if (masterFileName != String.Empty)
{
if (File.Exists(masterFilePath))
{
if (!sources.Contains(masterFilePath))
sources.Add(masterFilePath);
}
else
{
m_log.ErrorFormat("Master ini file {0} not found", Path.GetFullPath(masterFilePath));
Environment.Exit(1);
}
}
}
string iniFileName = startupConfig.GetString("inifile", Path.Combine(".", "OpenSim.ini"));
if (IsUri(iniFileName))

View File

@ -102,5 +102,11 @@ namespace OpenSim.Tools.Configger
return found.ToArray();
}
public static string configDir()
{
return ".";
}
}
}